I have the following C# code that runs a command line:
ProcessStartInfo si = new ProcessStartInfo();
si.FileName = @"Lib\my_program.exe";
si.WindowStyle = ProcessWindowStyle.Hidden;
si.UseShellExecute = false;
si.CreateNoWindow = true;
si.Arguments = "my args";
Process p = new Process();
p.StartInfo = si;
p.Start();
It works perfect on one computer, but when running it on different computer - nothing happens.
When trying to run it via the command line at the problematic computer - it also works fine.
all the paths are correct and I run it with an admin permission.
What can go wrong? maybe some environment variables? or computer's security issues?