How to run a VBScript?
Posted on 2005-04-11
I want to make a function RunScript as specified below:
Function RunScript(ByVal Path As String) As Boolean
* loads the file specified in the path
* runs the VBScript code in the file
* returns True on success
I ve managed to make such a function using the following component:
Microsoft Script Control 1.0
Unfortunatly I can not use components because the RunScript function will be part of an ActiveX DLL.
My question: How do I make the RunScript function without using the Microsoft Script Control 1.0 component?
Perhaps there is a scripting library I am unaware of? If so, which one and can you give me some examples on how to use that scripting library?