Introduction
When running VbScript in Windows shell, there is no built in function to include a file, therefore, to organize your code in different files you'll need to create a method to do that.
A few things to keep in mind when using the IncludeFile(p_Path)
method :
- There is no limitation of file type that can be included but the included files content must be VbScript.
- If there is a syntax error in the included file, you will not get the line/column of the error.
- You must define and initialize
std_internal_LibFiles
before the first call to IncludeFile(p_Path)
- You can use
IncludeFile(p_Path)
anywhere in your code, including other methods.