YouTube Channel: [WATCH, RATE, SUBSCRIBE]
A thing I have in the files is a class and function library. In Ruby it's easy to simply include a file with other stuff in, literally include somestuff.rb, then use whatever got included, gotta love it. Not so easy in VBScript. For brevity I'll jump straight to the solution.
NOTE: this is not MY solution, I trawled many a forum and grabbed the code, but in doing so didn't note the forum. SO APOLOGIES IN ADVANCE. Oh, and it was finished off by Majiec at BJSS, so ta for that!
Create a file called moduleCall.vbs and include the following:
Dim fso, f
Set fso = CreateObject("Scripting.
Set f = fso.OpenTextFile(file & ".vbs", 1)
str = f.ReadAll
' Now call Include and then call Doit
Then create a file called The_Module.vbs and add the following:
Pick up a more complete set of files at www.cyreath.co.uk/code/vbscript - the "005" set.