I have a batch file on windows XP that is behaving strangely. It contains:
SetLocal
FOR /f "delims=" %%x in (my.properties) DO (set "%%x")
call as-create-launch-config X --region us-east-1 --user-data "a=%VAR1%^|b=%VAR2%^|c=%VAR3%"
call as-create-launch-config Y --region us-east-1 --user-data "d=%VAR4%^|e=%VAR5%^|f=%VAR6%"
The VARx variables seem to be set correctly.
I get an error saying that "b is not recognized as an internal or external command". I am sure when running from the command line - no batch files involved - I had to insert the carat to escape the pipe. But in the batch file it does not work if I have the carat there and it does not work if I don't!
One other odd thing is that SetLocal does not appear to be having any effect as all the properties in my.properties are visible with 'set' after the batch file has run. And there is something in the output of 'set' called ARGV.
Thanks for any help, Paul