Sign in to follow this  
Followers 0
blakel

Calling wscript vbscript

5 posts in this topic

Is there a more robust way to call a vbscript that using Run()?

ie

$cmd = "wscript //b myscript.vbs"

Run($cmd)

-or-

RunWait($cmd)

Can you use the COM interface to call a script

or does wscript have a Dll?

Thanks

Share this post


Link to post
Share on other sites



While not better methods IMO,some alternative options below.

Convert the VBScript to AutoIt syntax and add into your AutoIt script.

Read the VBScript file and use the ScriptControl object to execute the read code.

:)

Share this post


Link to post
Share on other sites

I have a large script written by a software vendor, so converting it really isn't an option.

I like the idea of 'ScriptControl', would you mind pointing me to some examples or documentation.

I have found vbscript.dll and jscript.dll, but I have not found the API documentation on MSDN (or anywhere else).

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0