Ftp: mls


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

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

Syntax


Copy Code

mls <RemoteFile>[…] <LocalFile>

Parameters

Parameter

Description

<RemoteFile>

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

<LocalFile>

Specifies a local file in which to store the listing.

Remarks

Examples

Display an abbreviated list of files and subdirectories for Dir1 and Dir2.


Copy Code

mls Dir1 Dir2 -

Save an abbreviated list of files and subdirectories for Dir1 and Dir2 in the local file Dirlist.txt


Copy Code

mls Dir1 Dir2 Dirlist.txt

Additional references