iceman Posted April 14, 2008 Report Share Posted April 14, 2008 Can individual variables be restored (e.g. from the registry via Read Registry String), instead of all (e.g. Variable Restore Text Variables), after they have been Saved (e.g. Variable Save Text Variables)? Where are the variables stored when Saved (e.g. Variable Save Text Variables)? I could not find sample text in the Registry or in the contents of any file on my hard drive. Here's the code I used in the attempt. <TVAR2:01:01:WhereAreYouInHere><VARSR:01><VARSR:06> This question comes in response to my post the other day (Passing text variable with forward slash via Command Line Parameters). My workaround uses T98, T99, and N99 to accomplish the goal. I have a scenario where I want to use the value in T98, but I end up overriding it trying to retain the forward slashes in the other variables. Today, I worked on modifying my workaround by adding saving and restoring T98, T99 via the clipboard. Quote Link to comment Share on other sites More sharing options...
kevin Posted April 14, 2008 Report Share Posted April 14, 2008 (edited) Can individual variables be restored (e.g. from the registry via Read Registry String), instead of all (e.g. Variable Restore Text Variables), after they have been Saved (e.g. Variable Save Text Variables)?Individual Variables cannot be restored using the Variable Restore Text Variables command. Where are the variables stored when Saved (e.g. Variable Save Text Variables)?The Variable Save Text Variables command stores variables in memory (RAM) (not in the registry, environment variable or a file). Variables passed via the /V command line parameter are also stored in memory. You can save and later restore individual variables in an .INI file, an environment variable, a text file or in the Registry using these commands: Variable Modify String: Save %T1% to INI File Variable Set String %T1% from INI File Variable Modify String: Save %T1% to Environment Variable Variable Set String %T1% from Environment Variable Variable Modify String: Save %T1% to Text File Variable Set String %T1% from File: "T1" Write Registry String: "SaveAVar" Read Registry String: "SaveAVar" Edited April 20, 2008 by kevin Quote Link to comment Share on other sites More sharing options...
iceman Posted April 15, 2008 Author Report Share Posted April 15, 2008 Thank you Kevin for the answer and solution. Quote Link to comment Share on other sites More sharing options...
sunilvedula Posted April 20, 2008 Report Share Posted April 20, 2008 hey that was great!. this is the same question that was in my mind (saving a single variable) and use it later. thanks kevin. Quote Link to comment Share on other sites More sharing options...
sunilvedula Posted April 23, 2008 Report Share Posted April 23, 2008 HI , just wanted to know how do we declare env. variables and how do we use them? can they be used like normal variables. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.