ESCAPE Character Problem
Posted: 25 Jun 2010 09:37
Hi,
This code:
set sfv=ab,cd
set sfvi=%sfv%
if [%sfvi%]==[] echo pppppppppppppppppp
gives me this response:
C:\business\Batch\Env\envString>set sfv=ab,cd
C:\business\Batch\Env\envString>set sfvi=ab,cd
cd]==[] was unexpected at this time.
C:\business\Batch\Env\envString>if [ab,cd]==[] echo pppppppppppppppppp
. How to escape (,) character to avoid "cd]==[] was unexpected at this time." error message?
Thanks.
This code:
set sfv=ab,cd
set sfvi=%sfv%
if [%sfvi%]==[] echo pppppppppppppppppp
gives me this response:
C:\business\Batch\Env\envString>set sfv=ab,cd
C:\business\Batch\Env\envString>set sfvi=ab,cd
cd]==[] was unexpected at this time.
C:\business\Batch\Env\envString>if [ab,cd]==[] echo pppppppppppppppppp
. How to escape (,) character to avoid "cd]==[] was unexpected at this time." error message?
Thanks.