Via a *.cmd script I do set "test = zzz" at the command line and then "echo %test%" and what's echo'd back to me isn't zzz, as I'd expect, but %test%.
Any ideas?
|
Via a *.cmd script I do Any ideas? |
||||
|
|
|
Your invocation of the The command prompt treats the spaces surrounding the equality sign (
prints the following:
Since the variable |
|||
|
|
|
You have to omit the spaces I used:
and when I used |
|||
|
|
|
You cannot have spaces before or after the equal sign. Try this instead:
|
||||
|
|