Process file not found?
I have a program that I am trying to execute and it has a line
Process.Start(w);
And I get an error 'Win32Exception The system cannot find the file specified"
I have System.Diagnostics in the namespace import (which I believe is the namespace for Process). What am I doing wrong?
Comments
What's the value of w?
Note that if it's not an executable, you must invoke it like this in .NET Core:
Process.Start (new ProcessStartInfo (target) { UseShellExecute = true })
w is a string. Basically the URL that I want to being up in the default browser. I am relaying on file extension association to cause the browser to be invoked. For arguments sake 'w' is "http://www.google.com".
Then the suggested solution should work. In .NET Core, you must set
UseShellExecute = true
to get the desired behavior.