run another .exe

  • Thread starter Thread starter MP
  • Start date Start date
Hi,

System.Diagnostics.Process.Start("notepad.exe");

This will start notepad, check the Process class as you can do much more
with it.

Regards

Chris Taylor
 
MP wrote:
|| Do you know for some example?


The MSDN class description does contain a sample (see: Process.Start).

Willy.
 
MP wrote:
|| I have try:
|| System.Diagnostics.Process.Start("Cl.exe, -help");
||
|| But didn't work...
||
||
||

Please start reading the documentation before asking the most basic questions, [System.Diagnostics.Process.Start] has a sample
exactly doing this.

Willy.
 
System.Diagnostics.Process excelProcess = new System.Diagnostics.Process();

excelProcess.EnableRaisingEvents = false;

excelProcess.StartInfo.FileName = "excel";

excelProcess.StartInfo.Arguments = "\"" + strExcelFileName + "\"";

excelProcess.Start();

HTH,

Lumir Vanek
 
Back
Top