in reply to Dealing with spaces in folder names with ARGV[0]
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Dealing with spaces in folder names with ARGV[0]
by Anonymous Monk on Mar 30, 2015 at 11:25 UTC | |
by roboticus (Chancellor) on Mar 30, 2015 at 13:10 UTC | |
by Anonymous Monk on Mar 31, 2015 at 10:52 UTC |