Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Ftp: mdir

Published: April 17, 2012

Updated: April 17, 2012

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

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

mdir <RemoteFile>[…] <LocalFile>

 

Parameter Description

<RemoteFile>

Specifies the directory or file for which you want to see a listing.

<LocalFile>

Specifies a local file to store the listing. This parameter is required.

  • You can use mdir to specify multiple files.

  • Specifying RemoteFile

    Type a hyphen (-) to use the current working directory on the remote computer.

  • Specifying a LocalFile

    Type a hyphen (-) to display the listing on the screen.

Display a directory listing of Dir1 and Dir2 on the screen

mdir Dir1 Dir2 -

Save the combined directory listing of Dir1 and Dir2 in a local file called dirlist.txt

mdir Dir1 Dir2 dirlist.txt

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.