File System Sample

To get samples and instructions for installing them, see the following:

  • Click Samples on the Visual Studio Help menu.

    For more information, see Locating Sample Files.

  • The most recent versions and the complete list of samples are available on the Visual Studio 2008 Samples Web site.

  • You can also locate samples on your computer's hard disk. By default, samples and a Readme file are copied to a folder under \Program Files\Visual Studio 9\Samples\. For Visual Studio Express Editions, all samples are located on the Internet.

To run this sample

  1. Locate this sample on the MSDN Web site, and then download and open the sample.

  2. On the Build menu, click Build FileSystemSample.

  3. Press F5.

To view the sample documentation

  1. In Solution Explorer, double-click the Documentation folder.

  2. If you are using Visual Basic Express Edition, right-click ReadMe.htm in the Documentation folder. Select View in Browser.

  3. If you are using another version of Visual Basic, double-click ReadMe.htm in the Documentation folder.

Demonstrates

This sample provides an interface for running the file-system methods of the My.Computer.FileSystem Object. A TreeView control on one side lets you pick the type of methods that you want to run. When a method is selected, a custom control appears on the form that enables you to input parameters for the method and then execute the method. Thus the project contains a separate user control for each method demonstrated.