Solved Variable Does Not Show When Creating New File

October 22, 2011 at 14:14:32
Specs: Windows Vista
Okay, so when I run my batch file that makes another file with this in it:
ECHO if %number% GTR 50 goto end >>test.bat

And yes I do have this:

ECHO set number=0 >>test.bat

It does not copy the %number% at all. No space to resemble it.


See More: Variable Does Not Show When Creating New File

Report •

#1
October 22, 2011 at 14:42:02
✔ Best Answer
Double up the % i.e.

Echo if %%number%% GTR 50........etc.....


Please come back & tell us if your problem is resolved.


Report •
Related Solutions


Ask Question