I have downloaded the zip file for ASPExec from What I'm trying to do is execute a Visual Basic 5.0 Standard .exe from ASP, using VBScript.
The .exe file is named ouputExcel.exe and is located on the server side. The executable takes an Access table and exports it into Excel. All I need to do is execute the .exe file on the client and save the output on the client. I want the exported Excel file to be saved on the client side as Statistical Export.xls.
I have installed and registered the ASPExec.dll file on both the client and the server. I have also set up the World Wide Web Publishing service to interact with the desktop (on the server).
Here's my code:
ASPExecExcel.asp:
<html>
<head><title>Export Table into Excel</title></head>
<body bgcolor=white text=black>
<blockqoute>
<%
Set Executor = Server.CreateObject("ASPExec.Execute"
Executor.Application = "C:\Inetpub\ 'server side extension of file
Executor.Parameters = "C:\autoexec.bat"
Executor.ShowWindow = True
Response.Write "Attempting to execute " & Executor.Application & "<br>"
strResult = Executor.ExecuteWinApp
Response.Write "The Result of this call was: " & strResult
%>
</blockquote>
</body>
</html>
When I run the ASP page my message is:
The Result of this call was: OK
However, I am unsuccessful in creating the spreadsheet file on the client side (but, if I run outputExcel.exe on the client side manually this is done successfully) and when I open Task Manager, outputExcel.exe never runs.
Please help....Thanks in advance..
The .exe file is named ouputExcel.exe and is located on the server side. The executable takes an Access table and exports it into Excel. All I need to do is execute the .exe file on the client and save the output on the client. I want the exported Excel file to be saved on the client side as Statistical Export.xls.
I have installed and registered the ASPExec.dll file on both the client and the server. I have also set up the World Wide Web Publishing service to interact with the desktop (on the server).
Here's my code:
ASPExecExcel.asp:
<html>
<head><title>Export Table into Excel</title></head>
<body bgcolor=white text=black>
<blockqoute>
<%
Set Executor = Server.CreateObject("ASPExec.Execute"
Executor.Application = "C:\Inetpub\ 'server side extension of file
Executor.Parameters = "C:\autoexec.bat"
Executor.ShowWindow = True
Response.Write "Attempting to execute " & Executor.Application & "<br>"
strResult = Executor.ExecuteWinApp
Response.Write "The Result of this call was: " & strResult
%>
</blockquote>
</body>
</html>
When I run the ASP page my message is:
The Result of this call was: OK
However, I am unsuccessful in creating the spreadsheet file on the client side (but, if I run outputExcel.exe on the client side manually this is done successfully) and when I open Task Manager, outputExcel.exe never runs.
Please help....Thanks in advance..