A
Albert Fuchigami
Hi There,
I need to pass in some strings that contains special characters to a
batch file. (The strings are then being passed on to another
application). Is there any way of telling the command processor to
just treat them literally?
For example, if I run the following
Prompt>Test.bat "A|B"
I want a local environment variable inside the batch file to get the
value A|B.
I've tried "A|B", "A^|B", "A||B" (all with and without the
double-quotes) without any success. The batch file either errors out,
or doesn't get the value I'm looking for.
Does anyone have any ideas?
Thanks.
Albert.
I need to pass in some strings that contains special characters to a
batch file. (The strings are then being passed on to another
application). Is there any way of telling the command processor to
just treat them literally?
For example, if I run the following
Prompt>Test.bat "A|B"
I want a local environment variable inside the batch file to get the
value A|B.
I've tried "A|B", "A^|B", "A||B" (all with and without the
double-quotes) without any success. The batch file either errors out,
or doesn't get the value I'm looking for.
Does anyone have any ideas?
Thanks.
Albert.