I have a program (I created) and I want to start it on the server when the webpage loads.
Here is the code I have
public partial class _Default : S
You could use ProcessStartInfo.
ProcessStartInfo psi = new ProcessStartInfo(); psi.FileName = @"D:/Path to /My/Program to be run.exe"; psi.WorkingDirectory = IO.Path.GetDirectoryName(psi.FileName); Diagnostics.Process.Start(psi);