Script Command: download


(Contents)(Previous)(Next)

Format:

download "filename/pathname" {using PROTOCOL} {abort LABEL_NAME};

The download command causes the file "filename" to transfer from the host to your computer. Use the optional "using" command to specify one of the following file transfer protocols:

· ZMODEM (this is the default if you do not specify a protocol)

· XMODEM

· XMODEM1K

· YMODEM

· YMODEM1K

· YMODEM1KG

If the protocol supports multiple files in a single transfer (such as ZMODEM), the "filename/pathname" should contain the path to the directory where you want to receive the files.

If you specify abort LABEL_NAME, the script will branch to the label with name LABEL_NAME if the file transfer fails or the user cancels it.

Examples:

// Receives all files in the transfer into the c:\temp directory

download "c:\temp" using ZMODEM;

// Downloads the file test.zip to the current directory

download "test.zip" using XMODEM;


(Contents)(Previous)(Next)