System.Diagnostics.Process.Start Spaces in Filepath

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When using System.Diagnostics.Process.Start method, I find that it does not
like spaces in the filepath. I've experimented with different scenarios, and
I get an error message regarding the file name or path being incorrect when
there are spaces in the file name or in any subdirectory in the path. Has
anyone else observed this and is there a workaround?

Thanks.
 
I am having no problems with this.

For instance:

p.StartInfo.Arguments = "D:\\Personal\\Mad TV - Kenny Rogers - Psychic
Friends Hotline.mpg";

This has no problems.
 
Back
Top