Beyond FTP Feature Tour
Beyond FTP Script
Editor - Rename_File/To Command
Back
to Feature Tour


Rename_File/To is very similar to the From/To command. The
only restriction is that the source and target files must occur on the same
physical disk drive. This implies that they must occur at the same remote
server, if any. Server names may be included for both the source and target,
and a third party server can be instructed to perform the rename on a
locally attached FTP server. However, the target is assumed to be on the
same drive, and the resulting rename command will operate from that
assumption. For this reason, you need not include a server name for the
target file.
The Rename_File and To keywords must occur together, and must completely
define the source and destination paths and files involved in the rename. A
Server_List may be used as part of the source file name.
Server lists are expanded at compile time. Wild cards are expanded at
execution time.
Example:
:Rename_File: c:\Sales
Reports\*.doc
:To: c:\Save Reports\*.doc-%DM-%M2-%Y2
:Rename_File: {ftp:APTServe}/Incoming/Orders*.bin
:To: {ftp:APTServe}/Incoming/Save/%DM-%M2-%Y2/Orders*.Bin
:Rename_File: {ftp:APTServe}D:/Incoming/Orders*.bin
:To: D:/Incoming/Save/%DM-%M2-%Y2/Orders*.Bin
Back
to Feature Tour

|