Introduction to FSO (File System Object)
FSO is a pure VBScript object. You would use FSO to open an Excel spreadsheet and read the user properties. Other methods in the script will then assign these properties to the user objects as they are created.
FSO creates an object. That top level object is like a super file that can create, open and manage a variety of file types, for example, text files or spreadsheet applications. So our first task is to create a ‘master’ object, in the example objFile. We will then use this ‘master’ object to create instances of files, for example text files or Excel spreadsheets.
Set objFSO = CreateObject("Scripting.FileSystemObject")
Creating a Shell
Set objShell = CreateObject("Wscript.Shell")
Note 1: This is a job for WSH (Windows Script Host) rather than a VBScript object