How to use ASP & Execute/Run .exe Server.CreateObject(”ASPExec.Execute”) This is learn/tutorial asp developers how to using ASP script Run execute EXE by ASPExec.Execute
ShotDev Focus:
- ASP & Run execute EXE by ASPExec.Execute
Step 1 Copy aspexec.dll to C:\Windows\System32
Step 2 Register DLL regsvr32 C:\Windows\System32\aspexec.dll
Example
asp_exe_aspexec.asp
<% Option Explicit %>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<%
Dim objExe
Dim sResult
Set objExe = Server.CreateObject("ASPExec.Execute")
objExe.Application = "C:\MyApp\LoadAutoRun.exe"
objExe.Parameters = "" '*** Parameter ***'
objExe.ShowWindow = False
sResult = objExe.ExecuteWinApp
Response.Write "Result: " & sResult & "<p>"
%>
</body>
</html>
Create a asp file and save to path root-path/myasp/
Run
http://localhost/myasp/asp_exe_aspexec.asp
Screenshot






3absorbs…
…