Input to txt file

June 23, 2009 at 09:49:15
Specs: Windows XP

I've got a problem which probably has got a easy
I just wonder why this is not working;

Echo IF %%variable%%==%%variable%% cls & goto
:label >>"File.bat"

It's supposed to write the command
IF %%variable%%==%%variable%% cls & goto :label
into File.bat.
But it isn't working.

Replies is appreciated.

See More: Input to txt file

Report •

June 23, 2009 at 10:46:07
I figured it out, I just had to put a ^ in front of the &
echo If %%Variable1%%==%%Variable2%% cls ^& goto :label

Report •
Related Solutions

Ask Question