This sample shows how to use methods of the FtpWebRequest class to list the contents of an FTP server.
For information about using the samples, see the following topics:
To build the sample using the Command Prompt
- Open the Command Prompt window and navigate to the CS subdirectory under the FTPExplorer directory. For information about required settings and the SDK Command Prompt, see How to: Set Sample Settings. 
- Type msbuild FTPExplorer.sln at the command line. 
To build the sample using Visual Studio
- Open Windows Explorer and navigate to the CS subdirectory under the FTPExplorer directory. 
- Double-click the icon for FTPExplorer.sln to open the file in Visual Studio. 
- In the Build menu, select Build Solution. 
The application is built in the default \bin or \bin\Debug directory.
To run the sample
- Navigate to the directory that contains the new executable file, using the Command Prompt window. 
- Type FTPExplorer.exe at the command line to run the sample. 
Remarks
The sample requires relative path information. Full paths are not supported.