ProcessStartInfo startInfo = new ProcessStartInfo(); //startInfo.WindowStyle = ProcessWindowStyle.Hidden; startInfo.WorkingDirectory = "C:\\Program Files (x86)\\Maxim Integrated Products\\MPC\\MAX32550"; // In this directory there is an "abc.exe" file that I want to open and that exe cannot be start without providing an argument "abc.ini" . startInfo.FileName = "cmd.exe"; MpcProc.StartInfo = startInfo; MpcProc.Start();
ProcessStartInfo psi = new ProcessStartInfo(pathToExe, arguments); psi.WorkingDirectory = Path.GetDirectoryName(pathToExe); Process.Start(psi);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)