G
ginee lee via .NET 247
(Type your message here)
hi all,
It seems that the arguments of System.Diagnostics.Process.Start()can only be the absolute path. The args can not be like".\abc\efg.exe" or "..\abc\efg.exe". While i use relative path,the function doesn't work. Any solution??
The other question is... i take a example fisrt!
System.Diagnostics.Process.Start("c:\\abc.exe", "hello.txt"); itworks fine. BUT if the second arg replace with "helloworld.exe", something wrong! the function looks likeSystem.Diagnostics.Process.Start("c:\\abc.exe", "helloworld.txt"); I think it is because the command will treat the"hello world.txt" as two args "hello" and "world.txt". Is thereother way to resolve this issue!??
Thanks
hi all,
It seems that the arguments of System.Diagnostics.Process.Start()can only be the absolute path. The args can not be like".\abc\efg.exe" or "..\abc\efg.exe". While i use relative path,the function doesn't work. Any solution??
The other question is... i take a example fisrt!
System.Diagnostics.Process.Start("c:\\abc.exe", "hello.txt"); itworks fine. BUT if the second arg replace with "helloworld.exe", something wrong! the function looks likeSystem.Diagnostics.Process.Start("c:\\abc.exe", "helloworld.txt"); I think it is because the command will treat the"hello world.txt" as two args "hello" and "world.txt". Is thereother way to resolve this issue!??
Thanks