VoiceGuide IVR Software Main Page
Jump to content

Call Another Vbs During Execution

Recommended Posts

Hello,

 

During then script execution I need to call another vbs.

How can I do this?

 

Regards

Share this post


Link to post

You need to call another .VBS file from a VBScript module?

 

You can just invoke the Cscript.exe with the path to your VBScript as parameter.

 

eg:

 

Dim strFileName

strFileName = Chr(34) & "C:\Program Files\MyFolder\MyScript.vbs" & Chr(34)

 

Set WSHShell = CreateObject("WScript.Shell")

WSHShell.Run "cscript " & strFileName, , True

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×