RosettaCodeData/Task/Include-a-file/VBScript/include-a-file-3.vbs

8 lines
278 B
Text
Raw Permalink Normal View History

2026-04-30 12:34:36 -04:00
Include "%INCLUDE%\StrFuncs.vbs"
Function Include ( ByVal file )
Dim wso: Set wso = CreateObject("Wscript.Shell")
Dim fso: Set fso = CreateObject("Scripting.FileSystemObject")
ExecuteGlobal(fso.OpenTextFile(wso.ExpandEnvironmentStrings(file)).ReadAll)
End Function