PROTOCOL        Specify the desired file transfer protocol

Top  Previous  Next

Syntax:

PROTOCOL

[ protocol ]  [ /options ]

Arguments:

[ protocol ]

A variable or string defining the desired file transfer protocol for the next file send or receive operation; valid protocols are:

 

 

ASCII

 

 

Kermit

 

 

Xmodem

 

 

Xmodem1K

 

 

Ymodem

 

 

Zmodem

Options:

/compress=off

Turn off compression when using Kermit protocol

 

/compress=on

Turns on compression when using Kermit protocol

 

/no_acks

Do not send positive acknowledgements when receiving files when using the Xmodem1K or Ymodem protocols (called the G option)

 

/overwrite=xx

File over-write control on remote system for files sent by FileLink using the Zmodem protocol; replace xx with one of the following:

 

 

Alwaysalways over-write existing file

 

 

Appendappend to existing file

 

 

Diffover-write if file sizes/dates are different

 

 

Newover-write only if newer

 

 

Noneuse remote systems default

 

 

Newlongover-write only if newer or longer

 

 

Protectover-write only if file does not exist

 

/recovery=on

Enable crash recovery when using the Zmodem protocol

 

/recovery=off

Turns off recovery when using the Zmodem protocol

 

/rxsize=xxx

Specify the default receive (Rx) buffer size used by FileLink for the selected COM port. The default value is 8192. The allowable range for this is 4096 to 32,767 bytes

 

/txsize=xxx

Specify the default transmit (Tx) buffer size used by FileLink for the selected COM port. The default value is 8192. The allowable range for this is 4096 to 32,767 bytes

 

/use_checksum

Use additive checksum block check algorithm when using Xmodem or Xmodem1K protocol

 

/width=7

Use 7-bit data characters when using Kermit protocol

 

/window=on

Turns on window mode when using the Zmodem protocol

 

/window=off

Turn off sliding window mode when using the Zmodem protocol

 

/windowsize=xxx

Specify the sliding window size used by FileLink for the Zmodem protocol. The default value is 4096. The allowable range for this is 512 to 16,383 bytes. In general this window size should not be changed as this may prove to be unacceptable by the remote system; the Zmodem buffer size may not exceed either the Tx or Rx buffer sizes; (in previous versions this option was named either /buffersize or /zrxsize)

 

 

This script command defines the file transfer protocol to use on subsequent file transfer operations - both send and receive. The selection made in this command overrides the default selections set with the FileLink Configurator.

 

Consider the following example where the file transfer protocol is set to Zmodem of a script file that prompts you the name of next file to send to the remote system.

 

       PROTOCOL "zmodem" /overwrite=Always /recovery=on

 

Changing the Rx, Tx, or Zmodem buffer sizes is usually not necessary. However, in some cases, especially when poor connections are a problem, file transfer reliabilty may benefit from the use of smaller buffer sizes. This is best determined via trial and error.

 

Related Commands: USEPORT