Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2003
    Posts
    22

    Unanswered: How to Execute file (by ASP code)?

    I have a file path to a VB file "../Temp/file.vbs"

    I want to run this file from an ASP file
    How to do it? Do I need to use the Execute object??
    What is the code??

  2. #2
    Join Date
    Nov 2003
    Location
    Christchurch, New Zealand
    Posts
    1,618
    Well you can execute is use the Shell Scripting object something like

    set WshShell = WScript.CreateObject("WScript.Shell")
    WshShell.Run "my.vbs"

    but personally I wouldn't. Why do you want to run a command line script? Why not incorporate the VBS into your ASP page, atleast then you could see what the results of running the fie were....

  3. #3
    Join Date
    Jun 2003
    Location
    USA
    Posts
    1,032
    And here are a couple relevant links:

    Launch instance of an app with Windows Scripting Host inside an ASP Page - 5/11/2001
    http://www.aspfree.com/wsh/wshexe.asp

    4GuysFromRolla.com : ASP FAQS : The Nature of Things
    Question: How can I call an executable program from my ASP page? by Bill Wilkinson - 10/17/2000
    http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=67
    J. Paul Schmidt, Freelance Web and Database Developer
    www.Bullschmidt.com
    Access Database Sample, Web Database Sample, ASP Design Tips

Posting Permissions

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