Rename Command Settings
The Rename command renames a single file or directory.
To Rename a File or Directory
-
In From/To select the Connection objects that connect to the source and destination hosts.
-
Drag the Rename command from the left pane and drop it onto the editor in the middle.
-
In Path do the following:
-
Select a Connection object. This list displays the connection objects that you have selected at the top of the editor for the source and target hosts.
You can browse to a file or directory using the browse icon. When you click it, a pop-up dialog opens that allows you to browse to a file or directory on the host. For more information, see Browsing to Directories and Files.
-
In Path, specify the absolute or relative paths to change. You can use * (any number of characters) and ? ()one character) wildcards here.
Examples:
-
*.txt copies all files with a .txt extension.
-
report.* copies all files called report with any extension.
-
quarter? copies all files called quarter followed by a single character.
-
???? copies all files that are exactly four characters long.
-
-
In To Path specify a new file name. You can enter the new file name as either:
- The path from the From Path field and the file name. For example, config/options_old.ini.
- Just the new file name from the directory specified in the From Path field. For example, options_old.ini.
-
-
In the Options section, if you do not want the Job to abort if this command fails, deselect Abort job on command failure.
-
Optionally add a description of the command under Description. The text you enter here is not written to the Job report. To write a message to the Job report, use an Echo command. For more information, see Echo Command Settings.
See also: