Friday, January 11, 2008

call an executable from a .NET code

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

(or)

using System.Diagnostics;
ProcessStartInfo proc = new ProcessStartInfo();
proc.FileName="notepad.exe";
proc.Arguments = @"D:\dataset_tables.txt"; //It's going to open that txt file
Process.Start(proc);

1 comment:

Anonymous said...
This comment has been removed by a blog administrator.