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 H:\techref\os\win\winnt\slide13.htm 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