Hmm....I was thinking more of using the Execute statement to open a vbs file to read all of the functions/subs into memory to you can use them that way, or as a class if you want.
main file
strResourceFile = "somefile.vbs"
Set objResource = CreateObject("Scripting.FileSystemObject").OpenTextFile(strResourceFile, 1)
Execute objResource.ReadAll
objResource.Close
Set clsMsgBox = New DialogBox
clsMsgBox.MessageBox("Hello World!")
WScript.Quit somefile.vbs
Option Explicit
Class DialogBox
Sub MessageBox(strMessage)
Msgbox strMessage
End Sub
End Class
Now I can think WHY you would want to use them but it seems they couldn't be generic enough for use by anyone, rather specific for just a single user and I also noticed they don't return the err object very well...
I can see one for say Networking, Ping function, access function, ip to name and vise versa. I should make on for formatting output lol.
<message edited by Wakawaka on Friday, February 05, 2010 7:15 AM>