Visual Basic Concepts
The File System Objects
The FSO object model has these objects:
Object | Description |
Drive | Allows you to gather information about drives attached to the system, such as how much room is available, what its share name is, and so forth. Note that a "drive" isn't necessarily a hard disk. It can be a CD-ROM drive, a RAM disk, and so forth. Also, drives aren't required to be physically attached to the system; they can be also be logically connected through a LAN. |
Folder | Allows you to create, delete, or move folders, plus query the system as to their names, paths, and so on. |
File | Allows you to create, delete, or move files, plus query the system as to their names, paths, and so on. |
FileSystemObject | The main object of the group, full of methods that allow you to create, delete, gain information about, and generally manipulate drives, folders, and files. Many of the methods associated with this object duplicate those in the other objects. |
TextStream | Enables you to read and write text files. |
For information about the various properties, methods, and events in the FSO object model, use the Object Browser in Visual Basic (press F2) and look at the Scripting type library.