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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top