When I give a path like c:\some folder with a blank
into the Debug option of Visual Studio I need to escape it with a double quote "
just like you would on the command line as well.
If I do it like that "c:\some folder with a blank"
then the args[0]
parameter is "c:\\some folder with a blank"
However, if I do it like this "c:\some folder with a blank\"
then the args[0]
actually contains: "c:\\some folder with a blank\""
, having the final "
as an actual part of the string.
The same is true for when I call it from the command line directly.