Receives a file from the host with the XMODEM protocol.
xmodemrecv <filename> <binary flag> <option>
Causes Tera Term to receive the file <filename> from the host with the XMODEM protocol. Pauses until the end of the file transfer.
If the file is transferred successfully, the system variable "result" is set to 1. Otherwise, "result" is set to zero.
If the file is a binary file, <binary flag> must be non-zero.
If the file is a text file, <binary flag> must be zero.
<option> specifies the XMODEM option (Type of error detection), and can be one of the following:
Packet size (1K) can be only specified at sender side. (version 4.90 or later)
<option> | (version 4.89 or earlier) | (version 4.90 or later) |
---|---|---|
1 | Checksum | Checksum |
2 | CRC | CRC |
3 | 1K | CRC |
others | Checksum | Checksum |
; XMODEM receive, text file, CRC xmodemrecv 'readme.txt' 0 2