If you want to start a process in C# without worrying about quotes, use the ProcessStartInfo structure to describe the process, then start it. It's pretty easy to use (see the linked docs) and you won't have to worry about quoting.
In perl we have the same situation: You can start a process by making a command-line string or use the name and list of arguments to start the job.
Note: in the linked docs, you'll also see that the Process.Start() method will take the executable and list of arguments, too, if you don't need to alter any other parameters before starting up the job.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: Dealing with spaces in folder names with ARGV[0]
by roboticus
in thread Dealing with spaces in folder names with ARGV[0]
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |