By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,465 Members | 1,501 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,465 IT Pros & Developers. It's quick & easy.

ShellExecuteEx

P: n/a
is there a Equivelent of ShellExecuteEx
in c#

thanks
Dave
Feb 3 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
DaveP wrote:
is there a Equivelent of ShellExecuteEx
in c#
Process Start maybe.

Arne
Feb 3 '07 #2

P: n/a
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
Feb 3 '07 #3

P: n/a
On Feb 3, 2:58 am, "DaveP" <dvs_...@sbcglobal.netwrote:
is there a Equivelent of ShellExecuteEx
in c#

thanks
Dave
Just use System.Diagnostics.Process.Start("filenamehere.exe ");

Feb 3 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.