In C # .Net, I cannot get the command line argument correctly. This has problems in case I give a command like:
myProgram.exe "c:\inputfolder\" "d:\output.txt"
due to the backslash character (which I think acts like an escape character) in the args [] array, I get only one argument instead of two. It works fine if I gave it without a backslash:
myProgram.exe "c:\inputfolder" "d:\output.txt"
or without double quotes:
myProgram.exe c:\inputfolder\ "d:\output.txt"
Chandra kant
source
share