10-11
10 FTP Server
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
10-5 Using FTP Commands
10
10-5-2 Using the Commands
Format
dir [remote_file_name [local_file_name]]
Function
• Displays the names, creation dates, and sizes of files on the remote host (on the SD Memory
Card).
• It displays the same information as command [ls -l].
• Specify a file on the SD Memory Card for the remote file name.
• If a local file name is specified, the file information is stored in the specified file.
Format
mdir remote_file_name local_file_name
Function
• Displays the names of files, subdirectories, creation dates, and sizes on the remote host (on the
SD Memory Card).
• Specify the directory or file name on the SD Memory Card to list as the remote file name. Input a
hyphen (-) to display a list of the current working directory.
• If a local file name is specified, the file information is stored in the specified file. Input a hyphen (-)
to display a list of the remote host and not store the list of file names.
Format
mdir RemoteFiles [...] LocalFile
Remotefiles: Enter a hyphen (-) to use the current working directory.
Localfiles: Enter a hyphen (-) to display a list.
Function Details
• A list of the files and subdirectories in the remote directory is displayed.
Format
rename current_file_name new_file_name
Function
• Changes the specified current file name to the specified new file name.
• If the new file name is already used on the remote host (on the SD Memory Card), the existing file
is overwritten by the file for which the name was changed.
•rename can be used only to change the file name. It cannot be used to move the file to a different
directory.
dir
mdir
rename