I'm trying to launch the MultiDigiMon (Multiple digital monitors) utility as part of an automatic calibration scheme.
I can launch it manually by running "multidigimon -touch" (note: that if you don't have any touch devices it wont launch for you, but the file is still in the system32 folder). I can launch the cmd.exe utility just fine.
Here is how I'm trying to do it:
ProcessStartInfo info = new ProcessStartInfo(@"C:\Windows\System32\MultiDigiMon.exe", "-touch");
Process.Start(info);
It will just fail with the exception (when you run it):
Unhandled Exception: System.ComponentModel.Win32Exception: The system cannot find the file specified
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at CommandLineTest.Program.Main(String[] args) in C:\Users\-\Program.cs:line 20
Weirdly enough, if you run it via debug or release, it won't throw a runtime exception, it just won't open the utility.
Administrator privileges make no difference. 64-bit Windows 10.
I've tried:
Process.Start in C# The system cannot find the file specified error
Error in Process.Start() -- The system cannot find the file specified