470,596 Members | 1,564 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,596 developers. It's quick & easy.

System.Diagnostics.Process.Start Spaces in Filepath

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.
--
Joe Micheli CPA, CMA, CFM, CPIM
Jul 21 '05 #1
1 2484
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.


"joseph micheli" wrote:
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.
--
Joe Micheli CPA, CMA, CFM, CPIM

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by ginee lee via .NET 247 | last post: by
1 post views Thread by solex | last post: by
1 post views Thread by joseph micheli | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.