The binary command sets the transfer type to BINARY. This type of transfer should always be chosen when transferring binary files. On starting FTP, ASCII is set as the default value for the transfer type.
The transfer type can also be changed by using the binary, tenex and type commands. The currently set transfer type can be determined with the status and type commands. The transfer type is described in more detail on "FTP client in BS2000".
binary |
Example
The current transfer type is queried.
type
Using ascii mode to transfer files.
The transfer type is changed from ASCII to BINARY.
binary
200 Type set to I.
A PAM file is transferred. The FTP server function PORT is called implicitly.
put pamela
200 PORT command successful.
...
The new transfer type is queried.
type
Using binary mode to transfer files.