Unable to fetch command line arguments properly in C# -
In C # I am not able to get the commandline logic properly. If I give commands like this then there is a problem:
myProgram.exe "c: \ inputfolder \" "d: \ output.txt" < P> Because the backslash character (which seems to function as an escape character), I'm getting the same arguments in args [] array instead of two. It works fine if I gave without backslash: myProgram .exe "c: \ inputfolder" "d: \ output.txt" or without double quotation marks:
< Pre> myProgram.exe c: \ inputfolder \ "D: \ output.txt"
I have never experienced such a problem if you want to parse the command line using the system on your own. environment. Command line to achieve it
Comments
Post a Comment