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
|file: /Techref/language/asp/comp/aspexec/aspexec.htm, 2KB, , updated: 2005/9/20 15:18, local time: 2018/8/20 19:05,
|©2018 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.piclist.com/techref/language/asp/comp/aspexec/aspexec.htm"> language asp comp aspexec aspexec</A>
|Did you find what you needed?|
PICList 2018 contributors:
o List host: MIT, Site host massmind.org, Top posters @20180820 RussellMc, Van Horn, David, Sean Breheny, David C Brown, Isaac M. Bavaresco, Bob Blick, Neil, John Gardner, Denny Esterline, Brent Brown,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
Welcome to www.piclist.com!