DOS Command Line Support
The Following is a list of FTP Commands that are supported through the BlueZone Secure FTP Command Line Interface.
STOR - Uploads a local file to the host. If str2 is in the command then the filename on the host will be set to str2. instead of str1.
Format: STOR str1
Format: STOR "str1" str2
STOU - This command behaves like STOR except that the resultant file is to be created on the host under a name unique to that directory.
Format: STOU str1
Format: STOU "str1" str2
APPE - This command behaves like STOR except that if the resultant file already exists on the host the contents of the local file are appended to the host file.
Format: APPE str1
Format: APPE "str1" str2
PUT - This command behaves like STOR.
Format: PUT str1
Format: PUT "str1" str2
RETR - Downloads str1 from the host and stores it on the local computer. If str2 is in the command then the filename is stored on the local computer as str2.
Format: RETR str1
Format: RETR "str1" str2
GET - This command behaves like RETR.
Format: GET str1
Format: GET "str1" str2
MPUT - Uploads multiple files to the host. Wildcards (*) are supported in this command. Ex. MPUT *.txt will upload all the txt files in the current directory to the host.
Format: MPUT str1
Format: MPUT str1 str2 str3 etc. (long file names containing spaces are not supported in this command, use multiple STOR commands instead).
MGET - Downloads multiple files from the host. Wildcards (*) are supported in this command. Example: MGET *.txt will download are the txt files in the current host directory from the host.
Format: MGET str1
Format: MGET str1 str2 str3 etc. (long file names containing spaces are not supported in this command, use multiple RETR commands instead).
LIST - Performs a listing of the current host directory.
Format: LIST
LS - Performs a listing of the current host directory. Not all hosts support this command.
Format: LS
DIR - Performs a listing of the current host directory. Not all hosts support this command.
Format: DIR
EXIT - Closes the BlueZone Secure FTP program.
Format: EXIT
QUIT - Disconnects the connection to the host.
Format: QUIT
CWD - This command changes the current working directory on the host.
Format: CWD str1
CD - This command behaves like CWD.
Format: CD str1
CDUP - This command changes the current directory to its parent directory.
Format: CDUP
TYPE - This command changes the data type used for file transfer.
Format: TYPE A (Sets Type to ASCII)
Format: TYPE I (Sets Type to Binary)
Format: TYPE E (Sets Type to EBCDIC)
Format: TYPE F (Sets Type to Double-Byte EBCDIC)
Format: TYPE B (Sets Type to Double-Byte ASCII)
REIN - This command terminates a USER, the state is now the same as after a connection is opened. A USER command may be expected to follow.
Format: REIN
SITE - This command is used by the server to provide services specific to the system that may be essential to file transfer. The nature of these services and the specification of their syntax can be stated in a reply to the HELP SITE command.
Format: SITE
DELE - This command causes the file specified in str1 to be deleted on the host.
Format: DELE str1
MKD - This command causes the directory specified in str1 to be created as a directory (if str1 is absolute) or as a subdirectory of the current working directory.
Format: MKD str1
RMD - This command causes the directory specified in str1 to be removed. If the directory is not empty then BlueZone Secure FTP will try to recursively delete the contents in any subfolders.
Format: RMD str1
AUTH - This command causes BlueZone Secure FTP to start a SSL handshake with the host.
Format: AUTH
Format: AUTH SSL
Format: AUTH TLS
Format: AUTH TLS-C
Format: AUTH TLS-P
SMNT - This command allows the user to mount a different file system data structure. Format depends upon the host.
Format: SMNT str1
Format: SMNT str1 str2
Format: SMNT str1 str2 str3
IFTD - This command is unique to BlueZone Secure FTP. An iSeries File Transfer download is started with this command.
Format: IFTD Library iSeries_File FFD Type PC_FileName
Where: Library is the library on the iSeries server.
Where: iSeries_File is the data file to use for the transfer.
Where: FFD is the file field descriptor.
Type: 0 for XLS, 1 for CSV, 2 for Tab-delimited(txt).
Where: PC_FileName is the destination filename for the XLS, CSV, or TXT file.
IFTU - This command is unique to BlueZone Secure FTP. An iSeries File Transfer upload is started with this command.
Format: IFTU Library iSeries_File FFD PC_FileName
Whrer: Library is the library on the iSeries server.
Where: iSeries_File is the data file to use for the transfer.
Where: FFD is the file field descriptor.
Where: PC_FileName is the destination filename for the XLS, CSV, or TXT file.
Related Topics:
iSeries File Transfer Using the Command Line