Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

The parameter of method Process.Start can not accept relative path starting with slash ?

$
0
0

Hi

I have tried to Process.Start exe file by using relative path like this "./notepad.exe" (starting with slash)

But, the FileNotFound exception has occurred, in the fact it exists indeed.

Instead of "./notepad.exe" ,  when calls the Process.Start with  ".\notepad.exe"(starting with back slash), it starts successfully.

The question is that Process.Start can not accept relative path starting with slash ?

Env: Windows 7, VS 2010

Thank you very much.


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>