VBS Run command

Posted on 2004-11-17
Last Modified: 2009-07-29

is there a VBS function I canm use to run another VBS script?

e.g.: something like:

Call "C:\VBS\Script2.vbs"


Chain "C:\VBS\Script2.vbs"

Thanks - very urgent.

Question by:bukko
    LVL 28

    Accepted Solution

    have you tried:

    Dim wshell, fso
    Set fso = CreateObject("scripting.filesystemobject")
    If fso.FileExists("C:\VBS\Script2.vbs") Then
        Set wshell = CreateObject("WScript.Shell") ("C:\VBS\Script2.vbs")
    End If
    LVL 8

    Author Comment

    Nope, but I will now!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
    Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now