blakel Posted December 21, 2007 Share Posted December 21, 2007 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 Link to comment Share on other sites More sharing options...
MHz Posted December 21, 2007 Share Posted December 21, 2007 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. Link to comment Share on other sites More sharing options...
blakel Posted December 21, 2007 Author Share Posted December 21, 2007 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). Link to comment Share on other sites More sharing options...
blakel Posted December 21, 2007 Author Share Posted December 21, 2007 http://www.autoitscript.com/forum/index.ph...mp;#entry301771 Link to comment Share on other sites More sharing options...
MHz Posted December 21, 2007 Share Posted December 21, 2007 http://www.autoitscript.com/forum/index.ph...mp;#entry301771Another here for VBS Regexp use by using the ScriptControl object.http://www.autoitscript.com/forum/index.ph...l=scriptcontrol Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now