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

    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
    Christchurch, New Zealand
    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
    And here are a couple relevant links:

    Launch instance of an app with Windows Scripting Host inside an ASP Page - 5/11/2001 : ASP FAQS : The Nature of Things
    Question: How can I call an executable program from my ASP page? by Bill Wilkinson - 10/17/2000
    J. Paul Schmidt, Freelance Web and Database Developer
    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