Groups | Blog | Home
all groups > dotnet sdk > june 2004 >

dotnet sdk : Two questions about System.Diagnostics.Process.Start function


ginee lee via .NET 247
6/8/2004 8:17:38 PM
hi all,
It seems that the arguments of System=2EDiagnostics=2EProcess=2EStart()=
can only be the absolute path=2E The args can not be like=
"=2E\abc\efg=2Eexe" or "=2E=2E\abc\efg=2Eexe"=2E While i use relative path,=
the function doesn't work=2E Any solution??

The other question is=2E=2E=2E i take a example fisrt!
System=2EDiagnostics=2EProcess=2EStart("c:\\abc=2Eexe", "hello=2Etxt"); it=
works fine=2E BUT if the second arg replace with "hello=
world=2Eexe", something wrong! the function looks like=
System=2EDiagnostics=2EProcess=2EStart("c:\\abc=2Eexe", "hello=
world=2Etxt"); I think it is because the command will treat the=
"hello world=2Etxt" as two args "hello" and "world=2Etxt"=2E Is there=
other way to resolve this issue!??

Thanks

--------------------------------
From: ginee lee

-----------------------
Posted by a user from =2ENET 247 (http://www=2Edotnet247=2Ecom/)

Mattias Sjögren
6/9/2004 10:29:38 AM

[quoted text, click to view]

What's the path relative to?


[quoted text, click to view]

Try wrapping it in double quotes, "\"hello world.txt\""



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
AddThis Social Bookmark Button