? =?ISO-8859-1?Q?Arne_Vajh=F8j?= Feb 3, 2007 #2 DaveP said: is there a Equivelent of ShellExecuteEx in c# Click to expand... Process Start maybe. Arne
DaveP said: is there a Equivelent of ShellExecuteEx in c# Click to expand... Process Start maybe. Arne
S salman Feb 3, 2007 #3 may be you want this. Process myProcess = new Process(); myProcess.StartInfo.FileName = "cmd.exe"; myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; myProcess.StartInfo.Arguments = "/c" + " dir >> c:\test.txt"; myProcess.Start(); this will execute the dir command in console [ like in console: C:\> dir/w >> test.txt ] Salman
may be you want this. Process myProcess = new Process(); myProcess.StartInfo.FileName = "cmd.exe"; myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; myProcess.StartInfo.Arguments = "/c" + " dir >> c:\test.txt"; myProcess.Start(); this will execute the dir command in console [ like in console: C:\> dir/w >> test.txt ] Salman
F Freiddy Feb 3, 2007 #4 is there a Equivelent of ShellExecuteEx in c# thanks Dave Click to expand... Just use System.Diagnostics.Process.Start("filenamehere.exe");
is there a Equivelent of ShellExecuteEx in c# thanks Dave Click to expand... Just use System.Diagnostics.Process.Start("filenamehere.exe");