I have a problem with line continuation and alias.
It seems to happen only when using aliases.
This code will show the error:
The output is:
But D and E should also be set
- Heinz Saathoff
It seems to happen only when using aliases.
This code will show the error:
Code:
@Echo OFF
Alias SetVar=DO F in /L %%1 %%2 %%3 %%4 %%5 %%6 %%7 %%8 %%9 (Set %%F)
REM The following 2 lines should act as if its a single line
SetVar A=10 B=20 C=30 ^
D=1 E=2
Echo A=%A B=%B C=%C D=%D E=%E
A=10 B=20 C=30 D= E=
But D and E should also be set
- Heinz Saathoff