ASP.NET: Launch an external application
From Wiki
Summary: An example of how to launch another application on the server
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:
- 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.
This Hack is part of the ASP.NET Hacks collection


