process.Start()
is throwing exception
An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in System.dll
The system cannot find the file specified
C# Code is
Process process = new Process()
process.StartInfo.FileName= "...";
process.StartInfo.WorkingDirectory = "directory of exe file";
process.StartInfo.Arguments= "…";
process.Start();
It is working fine on 5 machines but on 1 machine it is not working. If I give complete path in file name then it works. i.e:
process.StartInfo.FileName= "complete path of exe.";
But I do not want to give complete path, as I have already given Working Directory and It is working on other machines.
Could you please give me the reason why it is not working if you know?