Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Equivalent to shellexecute in .net
Message
From
06/03/2009 14:14:25
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Equivalent to shellexecute in .net
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01386295
Message ID:
01386295
Views:
115
Update: this works as well:
           using System.Diagnostics;

           System.Diagnostics.Process p = new Process();
           p.StartInfo.FileName = "cmd.exe";
           p.Start();
Right now I am using this to run another program from an app in .net:
       private void button5_Click(object sender, EventArgs e)

        {

           System.Diagnostics.ProcessStartInfo info = new System.Diagnostics.ProcessStartInfo("cmd.exe"); // just an example

           info.UseShellExecute = true;

           info.Verb = "open";

           System.Diagnostics.Process.Start(info);

        }
is there a better way?
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Next
Reply
Map
View

Click here to load this message in the networking platform