Was this page helpful?
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Ftp: dir


Updated: April 17, 2012

Applies To: Windows Vista, Windows Server 2008, Windows 7, Windows Server 2008 R2, Windows Server 2012, Windows 8

Displays a list of directory files and subdirectories on a remote computer. For examples of how this command can be used, see Examples.

dir [<RemoteDirectory>] [<LocalFile>]




Specifies the directory for which you want to see a listing. If no directory is specified, the current working directory on the remote computer is used.


Specifies a local file in which to store the directory listing. If a local file is not specified, results are displayed on the screen.

Display a directory listing for Dir1 on the remote computer.

dir Dir1

Save a list of the current directory on the remote computer in the local file DirList.txt.

dir . DirList.txt
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft