Easy to reproduce but very weird for me:
Add the following 3-line arguments to the command-line arguments of the Text Box in VisualStudio (under Project Properties> Debugging-> Startup Options):
-SourceFile:"c:\temp\file.txt" -DestinationFolder:"c:\temp\" -ArchiveFolder:"C:\temp\"
Test it with this simple console application:
class Program { static void Main(string[] args) { foreach (string t in args) { Console.WriteLine(t); } Console.ReadKey(); } }
Result: an array (args []) has 2 instead of 3 lines?
[0] SourceFile:c:\temp\file.txt [1] DestinationFolder:c:\temp" -ArchiveFolder:C:\temp"
Can someone explain to me why this is happening? There is something strange in that the quotes cause normal, the quotes will be removed .net, but there are still some quotes ... but I do not see the problem ...
Thanks for any help!
dataCore
source share