However, if you issue the "cd" command with the correct name to the virtual directory or "ls" or "dir" of the virtual directory, the contents are listed (provided sufficient permissions exist for the user/anonymous user).
/ --> c:\inetpub\ftproot
/sample --> d:\ftpvdir
If you create the directory c:\inetpub\ftproot\sample, the FTP client will see that directory in directory listings. The FTP client will only be able to see/retrieve files located in d:\ftpvdir. If any files are placed in c:\inetpub\ftproot\sample, the FTP client will not see them or be able to retrieve them.
You can also create a virtual directory for the FTP service from the Directories tab in the FTP Service Properties by choosing Add. Select the directory and type in an alias. The virtual directory alias is used to change to the directory.
The way you change to the directory varies slightly depending on if you use a web browser or standard FTP client to access the FTP server.
From a WWW BrowserInclude the virtual directory name in the URL:
From a Standard FTP ClientEven though the directories can not be seen, you can explicitly "cd" to the virtual directory name. For example:
The forward slash is necessary, otherwise "cd" tries to change directory from within the current directory the client is in.
Article ID: 142853 - Last Review: Apr 15, 2010 - Revision: 1