Very rude option. Assuming IIS: change access execution from “Scripts only” or “No” to “Scripts and executables”
To make this less rude, you must have an executable file to implement the CGI interface (if this is under your control.
And, if you want to use ASP.NET to add authorization / authentication, for this code (C #) would be:
System.Diagnostics.Process process; var startInfo = New System.Diagnostics.ProcessStartInfo("C:\file.exe") process.StartInfo = startInfo; process.Start(); process.WaitForExit();
source share