Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASPExec - how to kill process from running? 1

Status
Not open for further replies.

ksbigfoot

Programmer
Apr 15, 2002
856
CA
I downloaded the code and dll for ASPExec. I ran the code below and the application is running in the processes of the task manager. How do you kill the process after it is finished running from within your ASP page?

Code:
  Set Executor = Server.CreateObject("ASPExec.Execute")
  Executor.Application = "notepad.exe"
  Executor.Parameters = "c:\autoexec.bat"
  Executor.ShowWindow = True
  Response.Write "Attempting to execute " & Executor.Application & "<br>"
  strResult = Executor.ExecuteWinApp
  Response.Write "The result of this call was: " & strResult
 
Use the corresponding ASPProc component from serverobjects.com.

I don't use either components, but I googled ASPExec, found thier site, looked at the free components, and noticed ASPProc which happens to be capable of exactly what you are asking about.
 
Hi a6m1n0,
Thanks I will try that.
ksbigfoot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top