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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -