I had wanted to know how to parse variables in command files for years, this was very helpful. Hear's another tip that may help someone. You can save and use system variables in your command files. For example, this example switches to another directory and then back to the original directory.
set orig_dir=%cd%
cd \some_other_dir
cd %orig_dir%
Nice tip
Posted by
Anne Gentle
at
2008-01-28 10:57
Takes me a while to wrap my head around it but that's a nice tip! Thanks for posting it.
set orig_dir=%cd%
cd \some_other_dir
cd %orig_dir%