Skip to content

Instantly share code, notes, and snippets.

@bouzuya
Created July 31, 2012 22:15
Show Gist options
  • Save bouzuya/3221136 to your computer and use it in GitHub Desktop.
Save bouzuya/3221136 to your computer and use it in GitHub Desktop.
Public Sub Import(ByVal strFileName)
Const ForReading = 1
Dim objFso, objFile
Set objFso = WScript.CreateObject("Scripting.FileSystemObject")
Set objFile = objFso.OpenTextFile(strFileName, ForReading, False)
ExecuteGlobal objFile.ReadAll()
objFile.Close()
End Sub
Call Import("string.vbs")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment