ASP Exec
set x = Server.CreateObject("AspExec.Execute")
'Properties:
'.Application : Set the path (optional) and exe/com filename
'.Parameters : Set the app parameters
'.TimeOut : Set the timeout to wait (milliseconds)
' Used only for ExecuteDosApp and ExecuteWinAppAndWait
'.ShowWindow : Set whether the executing app is visible or not
' Used only for ExecuteWinAppAndWait and ExecuteWinApp
'Methods:
'ExecuteDosApp : Executes the specified app as a DOS app and returns
' stdio as string
'ExecuteWinAppAndWait : Execute the specified app as a Windows app
' and wait for the specified timeout if exec is successful
'ExecuteWinApp : Execute the specified app as a Windows app and
' return result code immediately
See also: NT Version 4.0 cmd.exe
An Exec component for ASP
Version 3.0
Sept 20, 1998
Copyright (c) 1997, 1998 by ServerObjects Inc. All rights reserved.
http://www.serverobjects.com
Notes for version 1.0 & 2.0 users:
Please unregister the old version before installing this new version.
You can do this by typing
regsvr32 /u aspexec.dll
Also note that the object is now called AspExec.Execute instead of
ASPsvg.Execute so your Server.CreateObject calls will need to be changed
to reflect this new name.
Description: ASPExec allows you to execute DOS and Windows apps. The following
functionality is available through ASPExec
property Application : Set the path (optional) and exe/com filename
property Parameters : Set the app parameters
property TimeOut : Set the timeout to wait (milliseconds)
Used only for ExecuteDosApp and ExecuteWinAppAndWait
property ShowWindow : Set whether the executing app is visible or not
Used only for ExecuteWinAppAndWait and ExecuteWinApp
ExecuteDosApp : Executes the specified app as a DOS app and returns
stdio as string
ExecuteWinAppAndWait : Execute the specified app as a Windows app and wait
for the specified timeout if exec is successful
ExecuteWinApp : Execute the specified app as a Windows app and return
result code immediately
Installation: To use this ASP component move the DLL into a subdirectory
(like \winnt\system32 for NT or \windows\system for Win95) and type
regsvr32 aspexec.dll
You MUST go into control panel/services/world wide web publishing service
and turn Allow Service to Interact with Desktop on to use this component
if you run IIS as a service.
Some users after upgrading to SP3 report that visual apps no longer pop up. Make sure
that you have any Inetinfo managed services marked as "Allow to Interact with Desktop"
if you want to see visible apps on the server screen. Otherwise they will appear as
hidden windows.
Usage: See the attached example ASP scripts for usage
<P>Questions:
<UL>
<LI>
</UL>
</BODY></HTML>
| file: /Techref/language/asp/comp/aspexec/aspexec.htm, 2KB, , updated: 2022/1/19 18:21, local time: 2025/10/25 14:48,
216.73.216.180,10-8-63-169:LOG IN
|
| ©2025 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://www.massmind.org/Techref/language/asp/comp/aspexec/aspexec.htm"> language asp comp aspexec aspexec</A> |
| Did you find what you needed? |
Welcome to massmind.org! |
|
The Backwoods Guide to Computer Lingo |
.