Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1685

Line continuation

$
0
0
I have a problem with line continuation and alias.
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
The output is:
A=10 B=20 C=30 D= E=
But D and E should also be set

- Heinz Saathoff

Viewing all articles
Browse latest Browse all 1685

Trending Articles