PutMove <local filename or filename pattern> [, <remote filename>]
This command works like the Put command but will attempt to do a LocalDelete <local filename> after a successful transfer. If the local delete operation fails for any reason (e.g. because the file was Read-Only), it will try a RemoteDelete <remote filename>.
The logfile will list all the intermediate delete operations and their results. A failiure in any of the sub-operations will cause the PutMove command to fail.
Files are transferred between the current local and remote directories, so you probably will need LocalChDir and RemoteChDir commands before actually starting the transfer.
See also: PUT, PutDir, GetMove, ForEach und file patterns
Examples:
PutMove "server01data.dbf", "data.dbf" PutMove "*.cgi"
← Back to Script Commands