Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Equivalent to ShellExecute API
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01255503
Message ID:
01255509
Views:
16
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform