Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
01-20-2005, 08:54 PM #1
- Join Date
- Jan 2005
- Thanked 0 Times in 0 Posts
I cant do work this simple script.
I configured my inetinfo with compatibility Desktop on.
I NEED HELP HELP
<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>