Hi all,
In C++ I can execute a aplication with argument by : ::WinExec("A.exe "+ strArgument, SW_SHOW);
but I don't know in C#. Please help me!
Waiting for your help! Thanks
Thao Pham
Printable View
Hi all,
In C++ I can execute a aplication with argument by : ::WinExec("A.exe "+ strArgument, SW_SHOW);
but I don't know in C#. Please help me!
Waiting for your help! Thanks
Thao Pham
Process.Start("A.exe");
To start a process using command line parameters, You can use Process.Start's overloaded method that takes ProcessStartInfo class's instance, or the one that takes two parameters one is the filePath and second, the command lind arguments. Please have a look at MSDN for Process.Start method.