ftp mls

Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012

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

Syntax

mls <remotefile>[ ] <localfile>

Parameters

Parameter Description
<remotefile> Specifies the file for which you want to see a listing. When specifying remotefiles, use a hyphen to represent the current working directory on the remote computer.
<localfile> Specifies a local file in which to store the listing. When specifying localfile, use a hyphen to display the listing on the screen.

Examples

To display an abbreviated list of files and subdirectories for dir1 and dir2, type:

mls dir1 dir2 -

To save an abbreviated list of files and subdirectories for dir1 and dir2 in the local file dirlist.txt, type:

mls dir1 dir2 dirlist.txt