|It appears that you cannot do a "Set /P..." command within an IF statement block.|
if %var%==1 (
Set /P value=Enter new value:
I get error ": was unexpected at this time". If I comment out the Set line, it works fine.
And interestingly the comment works as long as I use the "rem" command. If I use what I
normally use, which is two colons "::", I get error ") was unexpected at this time". But for
comments outside of a block, the colons work great.
Even if I leave the colon off of the end of the Set statement, it still does funny things. What is
the rule about what can be put in a code block?