Session File Format
The tbx file utilizes a human-readable format and is used to store/restore content of the transfer queue. A tbx file is created with menu [Session | Save queue] or manually with a text editor.
Each line in a tbx file is a queue entry and looks almost exactly what you see in the Queue Window. Format of an entry:
<localpath> <size> <direction> <remotepath> <host> [d]
Use a whitespace character as delimiter.
If <localpath> or <remotepath> contains whitespace, it must be enclosed in double quotes("").
<localpath>
The local file/folder path.
<direction> use the following symbols:
-> or <-
for upload and download respectively.
>> or <<
to overwrite all existing files found on destination with no confirmation.
->> or <<-
to indicate that the source path uses wildcard to represent a group of files (wildcard only applies to files, all sub-folders under the same directory will be ignored and will not be transferred).
->. or <-. (there is a dot at the end)
to indicate a "transfer as" action, a new file name must be given in the destination path.
>>> or <<<
to delete files from source after they are transferred successfully to the destination path.
<remotepath>
Remote file/folder path.
<size>
If you create a tbx file manually, using zero (0) as <size> will be fine.
<host>
Host address without ftp:// at the beginning.
[d]
If the source path is a folder simply append a "d' to the end of line.
Examples:
Upload a file to remote host
c:\upload\www\index.html 0 -> \public\www ftp.myhost.com
Download the whole remote folder \archive 2003\update to local directory c:\download. There is a whitespace in the remote path name so double quotes are used.
c:\download 0 <- "\archive 2003\update" ftp.myhost.com d
Download myfile.doc then delete it on remote server.
c:\download 0 <<< \archive\update\myfile.doc ftp.myhost.com
Upload all files with extension jpg in c:\upload to remote server.
c:\mysite\www\images\*.jpg 0 ->> \pub\images ftp.myhost.com
Upload wessi.doc and store it on remote server in name ossi.doc
c:\download\wessi.doc 0 ->. \archive\update\ossi.doc ftp.myhost.com |