|I'm a starting to learn about batch files and I'm trying to make a batch file that will generate another batch file. I've been trying to use this, without success:|
if exist %TEMPSAVE% del %TEMPSAVE%
echo Removing files from %name%...
echo Done! Please Press any key to exit
The variables %path% and %name% are being set by data entered in the main bat. Will those variables be accepted? Or did I get that it wrong, and the code between () should be self contained?
Thanks a mil for your help!