Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jul 23, 2010 03:08 AM by aditya1986
Jul 22, 2010 07:39 PM|LINK
I'm trying to find a way (if there is one) to call a python script from an asp page. So far I've never found a way to call an executable from within an asp page (python.exe). Am I wrong on this? Does anyone know how this might be accomplished?
Jul 23, 2010 02:56 AM|LINK
You can probably do something like this just make sure the account that runs the thread have permission to reach and execute the exe file.
ProcessStartInfo startInfo = new ProcessStartInfo("Python.exe");
startInfo.WindowStyle = ProcessWindowStyle.Minimized;
startInfo.Arguments = "Parameters";
For more information, you can take a look at http://msdn.microsoft.com/en-us/library/system.diagnostics.processstartinfo.aspx
Jul 23, 2010 03:08 AM|LINK
python script from an asp page