Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Equivalent to shellexecute in .net
Message
De
06/03/2009 14:14:25
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Equivalent to shellexecute in .net
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01386295
Message ID:
01386295
Vues:
114
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"
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform