Hello,
I was wondering if anyone could share with me the VB6 code that would execute a VBScript file named
test.vbs
in the subdirectory
D:\test\
thanks in advance,
david
More information is needed to answer the question.
VBScript is not a stand-alone language. A file containing VBScript source code is usually meant to run in the context of a specific script host, though it is quite possible to write Subs, Functions, or Classes that can be used in many contexts.
Whole scripts though usually target CScript, WScript, IE, Office Suite applcations, or some other host (such as a specific VB6 program).
If this is a stand-alone WSH script you could Shell a copy of CScript (or WScript as appropriate) and pass it the .VBS file as a parameter. If the script is written for your default WSH host you can just Shell the script file name itself.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.