Use the TransferType property to retrieve or set the value for the way the Transfer Engine should transfer files (ASCII, binary or auto).
Syntax
String Object.TransferType
Parameters
|
"ASCII" |
All files should be transferred in ASCII mode |
|
"BINARY" |
All files should be transferred in BINARY mode |
|
"AUTO" (default) |
The TE will reference an internal list editable from CuteFTP's Global Options to determine the proper transfer type for that particular file. For example, if the ASCII list contains a filter mask of "txt" then all files with extension ".txt" will be transferred in ASCII. If a file doesn't correspond to any mask in this list then it will be transferred in binary mode. |
Example
Object.TransferType = "AUTO" 'the Transfer Engine will use the shell's default settings to establish whether the transfer should occur in binary or ASCII. 'write file transfer code next...