Udostępnij za pośrednictwem


Managed Explorer Application Sample

This sample provides a managed counterpart to Windows Explorer.

Note

The Managed Explorer application makes real changes to the settings of files and directories on your computer, just as Windows Explorer does. Use caution when making such changes.

For information about using the samples, see the following topics:

To build the sample using the Command Prompt

  1. Open the Command Prompt window and navigate to the VB subdirectory under the FileDemo directory. For information about required settings and the SDK Command Prompt, see How to: Set Sample Settings.

  2. Type msbuild FileDemo.sln at the command line.

To build the sample using Visual Studio

  1. Open Windows Explorer and navigate to one of the language-specific subdirectories under the FileDemo directory.

  2. Double-click the FileDemo.sln file to open it in Visual Studio.

  3. In the Solution Explorer window, right-click each bitmap file that is included in the project, and select Properties.

  4. In the Properties window for each bitmap, select the Copy To Output Directory property and set its value to True.

  5. On the Build menu, click Build Solution.

The application will be built in the default \bin directory.

To run the sample

  1. Navigate to the directory that contains the new executable, using the command prompt or Windows Explorer.

  2. Type FileDemo.exe at the command line, or double-click the icon for FileDemo.exe to open it from Windows Explorer.

Remarks

The sample allows you to set environment variables, view and modify drive details, read or write text files, and view or modify security settings for directories or files.