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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting ASP to run an external program 1

Status
Not open for further replies.

SmileeTiger

Programmer
Mar 13, 2000
200
US
Hi,<br><br>Does anyone know of a way to get asp to run an external program? I am just trying to get it to run a simple dos program.<br><br>Cory
 
<br>That was what I tried.... it didn't work I am trying to use the test file ASPEXEC.ASP this file attempts to run notepad.exe on the server. The specific message I get back on my web browser is:<br>ASPExec ExecuteWinApp Test<br>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Attempting to execute notepad.exe<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The result of this call was: Ok <br>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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
 
&quot;Allow Service to<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Interact with Desktop&quot; turned off in Control Panel/Services/World Wide Web Publishing Service or it could be that the version of IIS you are running is<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;running. Note: All InetInfo managed services must have &quot;Allow Service to Interact with Desktop&quot; turned on to see visible apps. <br>&nbsp;<br>&nbsp;<br>This should mean that everything is runing properly. However the notepad window never ever pops up. I did register the dll in e:\wint\system32 and I also went into control panel\admin tools\services\ service and enabled&nbsp;&nbsp;Interact with desktop.<br>&nbsp;<br>I can go into task manager and the application notepad.exe seems to be running although it is never displayed.<br>&nbsp;<br>I am running windows 2K&nbsp;&nbsp;server release candidate II.<br>&nbsp;<br>&nbsp;<br>Thanks in advance for your help.<br>&nbsp;<br>&nbsp;<br>
 
Since it's unlikely that you'll be running an application that requires desktop interaction,&nbsp;&nbsp;why not test it with the actual program you'll be using, rather than Notepad? <p>nick bulka<br><a href=mailto:nick@bulka.com>nick@bulka.com</a><br><a href= > </a><br>
 
I have tried that. It seems to start the program and tells me it runs ok but the program does not actually run.
 
Dear Smilee Tiger,<br><br>First, you are probably running into a permissions configuration problem.<br><br>Second, are you absolutely positively sure that this is the behavior you need? There is usually more than one way to provide a solution.<br><br>Third, there are probably another dozen or more ways to achieve your desired result.<br><br>-pete
 
Yes I do have to actually run the external program. It doesn't actually matter which scripting language I use to do it as long as it actually gets done.<br><br>Cory
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top