R
Ramon Gene
Hello:
I am building a console application and I am having an issue with the
command line arguments. A couple of my arguments are paths and they are
usually enclosed in double quotes. If one of the paths ends up in "\", it
causes the closing double quote to be ignored and the argument gets
concatenated with all the subsequent arguments until another double quote is
found or until the end of the string.
Example:
This command line parameter string:
arg1 "c:\arg2\" arg3
results in only two arguments stored in the args string[] parameter of
the Main method: 'arg1' and 'c:\arg\" arg3' instead of three arguments as
expected.
Is this an expected behavior? If so, is there any way around it?
Thanks in advance,
Ramon
I am building a console application and I am having an issue with the
command line arguments. A couple of my arguments are paths and they are
usually enclosed in double quotes. If one of the paths ends up in "\", it
causes the closing double quote to be ignored and the argument gets
concatenated with all the subsequent arguments until another double quote is
found or until the end of the string.
Example:
This command line parameter string:
arg1 "c:\arg2\" arg3
results in only two arguments stored in the args string[] parameter of
the Main method: 'arg1' and 'c:\arg\" arg3' instead of three arguments as
expected.
Is this an expected behavior? If so, is there any way around it?
Thanks in advance,
Ramon