Processing Drives, Folders, and Files

See Also

When programming in Windows, it's very important to have the ability to add, move, change, create, or delete folders (directories) and files, and get information about and manipulate drives.

Visual Basic allows you to process drives, folders, and files in two different ways: through traditional methods such as the Open statement, Write#, and so forth, and through a new set of tools, the File System Object (FSO) object model.

Topics

Introduction to the File System Object Model

An overview of the File System Object model.

The File System Objects

An introduction to the File System objects.

Programming in the FSO Object Model

A discussion of how to program in the FSO object model.

Working with Drives and Folders

Methods for handling drives and folders.

Working with Files

Methods for handling files.

Processing Files with Older File I/O Statements and Functions

Using older file I/O statements to process files.

Using Sequential File Access

How to create sequential files using older file I/O statements.

Using Random File Access

How to create random files using older file I/O statements.

Using Binary File Access

How to create binary files using older file I/O statements.