Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Ftp: mdir

Updated: January 21, 2005

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

Ftp: mdir

Displays a list of files and subdirectories in a remote directory.


mdir RemoteFiles [ ...] LocalFile

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

Specifies a local file in which to store the listing.

? mdir
Displays help for the mdir command.

  • You can use mdir to specify multiple files.

  • Specifying RemoteFiles

    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.

Formatting legend


Format Meaning


Information that the user must supply


Elements that the user must type exactly as shown

Ellipsis (...)

Parameter that can be repeated several times in a command line

Between brackets ([])

Optional items

Between braces ({}); choices separated by pipe (|). Example: {even|odd}

Set of choices from which the user must choose only one

Courier font

Code or program output

See Also

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft