Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2004
    Location
    India
    Posts
    168

    Unanswered: Ecexuting exe file throught ASP

    Hi All
    Let me tell you my setup first
    Windows 2003 Server
    IIS 6.0
    ASP

    Now i want to execute an .exe file from my asp script. Whe i try with Wscript.shell or exec it does not give any error neither an output.
    What should I do to make this work How can I execute an .exe file from my script
    Any help will be appriciated

    Regards
    Rajesh
    Last edited by rajesh_r_r; 04-22-04 at 06:51.

  2. #2
    Join Date
    Nov 2003
    Location
    Christchurch, New Zealand
    Posts
    1,618
    So basically what you want is the call an executable file, wait while it runs and then trap any errors it produced and return them back to the asp page so you can do what you like with it,.... right?

    With a simple exe you can't really do this...

    What you could do is get your exe to generate a results file or something. Before you execute your exe you delete any results files that exist, then run your exe and loop waiting for the results file to turn up.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •