Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

Processing Drives, Directories, and Files 

You can use Visual Basic to process drives, folders, and files with the My.Computer.FileSystem object, which provides better performance and is easier to use than traditional methods such as the FileOpen and Write functions (although they are still available). The following sections discuss these methods in detail.

In This Section

File Access with Visual Basic

Discusses how to use the My.Computer.FileSystem object to work with files, drives, and folders.

Walkthrough: Manipulating Files Using .NET Framework Methods

Demonstrates how to use the .NET Framework to manipulate files and folders.

Walkthrough: Manipulating Files and Directories in Visual Basic

Demonstrates how to use the My.Computer.FileSystem object to manipulate files and folders.

Related Sections

Program Structure and Code Conventions

Provides guidelines for the physical structure and appearance of programs.

My.Computer.FileSystem Object

Reference documentation for the My.Computer.FileSystem object and its members.

File I/O in the .NET Framework with Visual Basic

Provides an overview of file I/O with the .NET Framework.

Community Additions

ADD
Show:
© 2015 Microsoft