Hallo,
Being able to 'Include' a file in VBS is useful, to allow code re-use etc.
I have read around and come up with the following as about the neatest way to do it:
I'm not overly familiar with the specifics of VBS, so can anyone tell me if there is a problem with this (or any way to improve it)?
I'm not sure if the file and file system object are correctly closed, or how to verify that they are.
- Frink
Being able to 'Include' a file in VBS is useful, to allow code re-use etc.
I have read around and come up with the following as about the neatest way to do it:
Code:
ExecuteGlobal CreateObject("Scripting.FileSystemObject").OpenTextFile("C:\My Library.vbs",1).ReadAll
I'm not overly familiar with the specifics of VBS, so can anyone tell me if there is a problem with this (or any way to improve it)?
I'm not sure if the file and file system object are correctly closed, or how to verify that they are.
- Frink