INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Best Practices

Launch an External Application by ca8msm
Posted: 12 Apr 05 (Edited 4 Oct 06)

Prior to the release of the .NET framework, developers using older programming languages (such as VB6) often used commands such as Shell or ShellExecute to launch an external program.

The .NET framework brings us it's own version and allows us much more control. This version uses the System.Diagnostics.Process class and an example of how to use it is:

CODE

        Dim MyProcess As New System.Diagnostics.Process
        MyProcess.StartInfo.CreateNoWindow = True
        MyProcess.StartInfo.UseShellExecute = True
        MyProcess.StartInfo.WorkingDirectory = "C:\MyDirectory\"
        MyProcess.StartInfo.FileName = "MyApplication.exe"
        MyProcess.StartInfo.Arguments = "MyArgument"
        MyProcess.Start()

NOTE: This will launch the application on the server, not the client's machine.

Back to Microsoft: ASP.NET FAQ Index
Back to Microsoft: ASP.NET Forum

My Archive

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close