View Full Version : Aspexec

01-20-2005, 09:54 PM
I cant do work this simple script.

I configured my inetinfo with compatibility Desktop on.


<head><title>ASPExec Test (ExecuteWinApp)</title><head>
<body bgcolor=white text=black>
<H3>ASPExec ExecuteWinApp Test</H3>
Set Executor = Server.CreateObject("ASPExec.Execute")
Executor.Application = "cmd.exe"
'Executor.Parameters = "c:\autoexec.bat"
Executor.ShowWindow = false
Response.Write "Attempting to execute " & Executor.Application & "<br>"
strResult = Executor.ExecuteWinApp
Response.Write "The result of this call was: " & strResult
<p>If you do not see Notepad then it is possible that Notepad is running with a hidden window.
This could be caused by not having "Allow Service to Interact with Desktop" turned off in
Control Panel/Services/World Wide Web Publishing Service or it could be that the version
of IIS you are running is preventing the window from being displayed. Look in a task list
such as task manager, or use TList from the NT resource kit to see if Notepad is running.
<B>Note: All InetInfo managed services must have "Allow Service to Interact with Desktop"
turned on to see visible apps.</b>