C# Processes – cannot find "MultiDigiMon" exe utility

Issue

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

Solution

Update

So, I did some testing and the reason you’re getting the error “can’t find the file” is because when running ‘un-elevated’ it’s not able to find the file. I’m unsure still why you aren’t able to run it elevated but I was able to run it using the code below. My config is set as “Any-CPU”.

ProcessStartInfo info = new ProcessStartInfo(@"C:\Windows\Sysnative\MultiDigiMon.exe", "-touch");
info.WorkingDirectory = @"C:\Windows\Sysnative\";
info.UseShellExecute = true;
Process.Start(info);

Original

Did you try the answer on the first referenced post?

ProcessStartInfo info = new ProcessStartInfo(@"C:\Windows\sysnative\MultiDigiMon.exe", "-touch");

Answered By – Cory

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published