I want to pass a string array to main but keep spaces
问题 I want to pass a string to main, but I am having trouble with spaces. I pass the string "C:\Documents and Settings\desktop\..." to the Main(string[] args) and I had: args[0] = "C:\Documents" args[1] = "and" args[2] = "Settings\desktop\..." But what I want is: args[0] = "C:\Documents and Settings\desktop\..." Any way to keep spaces but concatenate to one element of the string? The code should also work with any number of spaces in a given file path, not just 2 in this case. 回答1: This is