Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Equivalent to ShellExecute API
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Divers
Thread ID:
01255503
Message ID:
01255509
Vues:
15
>I am converting a VFP application to C#/.NET 2.0. I'm having problems finding an equivalent to the Win API function ShellExecute(). Any suggestions?
>
>TIA
>Richard
System.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo.FileName = "File";
// If you really need to use ShellExecute, uncomment this line:
//process.StartInfo.UseShellExecute = true;
process.Start();
Take a look at the StartInfo properties for more settings, if necessary.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform