Asp exec help

blelisa's picture

They have: 31 posts

Joined: Aug 2003

Greetings,
I am attempting to use ASPExec and I have a couple of questions.
First what I am trying to do it have my License Generator program sit on my server. Have a page on my website that asks for input from the visitor in a form then write that input to a .txt file, then open my License Generator program.

Is this how I write the code on my .asp page to open and run the License Generator program?
Set Executor = Server.CreateObject("ASPExec.Execute")
Executor.Application = "LicenseConsole.exe"
Executor.Parameters = "c:\autoexec.bat"
Executor.ShowWindow = True
Response.Write "Attempting to execute " & Executor.Application & ""
strResult = Executor.ExecuteWinApp
Response.Write "The result of this call was: " & strResult

Thanks for your help in advance