|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Run an exe from asp and get returned values
Hi!
How is it possible to execute an exe from asp and get a returned string (no http headers in exe) ? To run exe I use : <% cmdExe = sPath & "cgi-bin\request.exe" Set WshShell = Server.CreateObject("WScript.Shell") sResult = WshShell.Run(cmdExe, 1, True) Set WshShell = Nothing Response.write sResult %> sResult always content "0" and not the string returned by exe file (something like "!!-1!blabla!blablablabla!") - How is it possible to get the exe returned value ? - Is there a solution with asp.net ? Thanks a lot for any idea ! |
|
#2
|
|||
|
|||
|
you could run the exe like "app.exe > temp.txt", and then read it with FSO. It'll contain the output of the app.
|
|
#3
|
|||
|
|||
|
See URL
for help |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Run an exe from asp and get returned values |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|