USING TFTP IN DOS TFTP (Trivial File Transfer Protocol) lets you transfer files between your DOS workstation and a remote host that is running a TFTP server program. TFTP does not require a password. Note: Before you can successfully transfer a file to or from a remote host, a destination file of the same name must exist and it must have universal ("other") write permission. TRANSFERRING FILES To copy a file from your workstation to a remote host, enter a TFTP command in the following format: TFTP [ -B ] [ -D ] [ -P port_number ] [ -V ] source remote_host=destination To copy a file from a remote host to your DOS workstation, enter a TFTP command in the following format: TFTP [ -B ] [ -D ] [ -P port_number ] [ -V ] remote_host=source destination The TFTP command-line options and parameters are listed and briefly described in Table 3-6 [below]. The following example shows you how to copy the file MARCH\ACCOUNTS.TXT from your workstation to the directory /x/march/ on the remote UNIX host sales. To do this, enter the following command: C:\> TFTP MARCH\ACCOUNTS.TXT sales=/x/march/accounts.txt The destination directory (/x/march) must exist on the remote host and the destination file (accounts.txt) must exist in /x/march and have universal ("other") write permission. The following examples show you how to copy the file /february/accounts.txt from the remote UNIX host sales to the current directory on your workstation. To do this, enter the following command: C:\> TFTP sales=/february/accounts.txt To redirect the contents of the file /february/accounts.txt to your screen, enter either of the following commands: C:\> TFTP sales=/february/accounts.txt - or C:\> TFTP sales=/february/accounts.txt - | MORE Table 3-6 [below] describes the options and parameters used with the TFTP command. Table 3-6: TFTP Options and Parameters ============================================================ Options and Parameters Description ============================================================ -B Enables 8-bit binary transfer mode. This mode is required when transferring binary files. If you do not specify this option, the transfer mode is ASCII. When transferring files between a remote host and your DOS workstation, this option lets you copy ASCII files without converting them. (When transferring files, data conversion is required when the ASCII file format on the other system is different from the DOS format.) -D Enables debugging mode. When the debugging mode is on, TFTP displays each command sent to the remote host. -P port_number Selects an alternate port number for establishing a TFTP connection with the remote server. The standard TFTP port number is 69. -V Enables verbose mode. When on, all responses from the TFTP server are displayed. source Name of the file you want to copy to destination. You must specify source as a full or partial path name, if it is on your DOS workstation but is not in the current directory. You must specify source as a full path name if it is on the remote host. remote_host Name of the remote host. It must be followed by an equal sign (=). destination Name given to the file when it is copied. You must specify destination as a full path name, if the directory to which you are copying source is not the current directory. If you omit destination, and source is on your DOS workstation, TFTP copies source to the current directory on remote_host under the same name. If you omit destination, and source is on the remote host, TFTP copies the file to the current directory on your DOS workstation under the same name.