[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 205
  • Last Modified:

VBS Run command

Hi,

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

e.g.: something like:

Call "C:\VBS\Script2.vbs"

...or...

Chain "C:\VBS\Script2.vbs"

Thanks - very urgent.

bukko
0
bukko
Asked:
bukko
1 Solution
 
vinnyd79Commented:
have you tried:

Dim wshell, fso
Set fso = CreateObject("scripting.filesystemobject")
If fso.FileExists("C:\VBS\Script2.vbs") Then
    Set wshell = CreateObject("WScript.Shell")
    wshell.run ("C:\VBS\Script2.vbs")
End If
0
 
bukkoAuthor Commented:
Nope, but I will now!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now