ASPExec ExecuteWinApp Test
<% 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 & "
" strResult = Executor.ExecuteWinApp Response.Write "The result of this call was: " & strResult %>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. Note: All InetInfo managed services must have "Allow Service to Interact with Desktop" turned on to see visible apps.