Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hey.
I've got a problem which probably has got a easy
answer.
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.

I figured it out, I just had to put a ^ in front of the &
example:
echo If %%Variable1%%==%%Variable2%% cls ^& goto :label
>>"File.bat"

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |