Objective to use an ASP page to run a remote application (exe file) on a web server with ASPEXEC.
----------------------------------------------------------
Download FREE ASPEXEC ...
http://www.serverobjects.com/products.htm
REGISTER ASPEXEC
1)move file aspexec.dll to winnt/system32 directory
2)regsrv32 aspexec.dll
***ASPEXEC DOS Commands wont work if Norton antivirus "Script Blocking is enabled, only Windows commands will work !
***REMOTE APPLICATION WINDOW WILL NOT BE VISIBLE, whther you use DOS or windows commands.
SERVICES
1)World Wide Web Publishing--> Allow Service To Interact With Desktop (checked)
IIS
1) Create virtual directory
-Scripts Only
-LOW IIS Process
-Anonymous Login /Windows Integration (checked)
ASP PAGE DIRECTORY PERMISSIONS
Administrator -full control
Everyone-full control
IUSR_MACHINENAME-full control
IWAM_MACHINENAME -full control
APPLICATION EXE FOLDER PERMISSIONS
Administrator -full control
Everyone-full control
IUSR_MACHINENAME-full control
IWAM_MACHINENAME -full control
WINDOWS -
<%@ Language=VBScript %>
<%Option Explicit %>
<%
dim Executor,strResult,WaitObj
Response.Buffer = true
Executor.Application = """C:\Program Files\remoteapp\remoteapp.exe""/ARGUMENTS"
Executor.ShowWindow = false
Set Executor = Server.CreateObject("ASPExec.Execute")
Response.Write "Attempting to execute " & Executor.Application & "<br>"
strResult = Executor.ExecuteWinApp
Response.Write "done"
%>