FTP Explorer Technology Sample

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

  1. 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.

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

To build the sample using Visual Studio

  1. Open Windows Explorer and navigate to the CS subdirectory under the FTPExplorer directory.

  2. Double-click the icon for FTPExplorer.sln to open the file in Visual Studio.

  3. In the Build menu, select Build Solution.

The application is built in the default \bin or \bin\Debug directory.

To run the sample

  1. Navigate to the directory that contains the new executable file, using the Command Prompt window.

  2. Type FTPExplorer.exe at the command line to run the sample.

Remarks

The sample requires relative path information. Full paths are not supported.

See Also

Reference

FtpWebRequest
FtpWebResponse
System.Net
WebException