Rename File
This Action Step renames a file. If the renamed file already exists in the destination folder, the workflow is interrupted with an error message.
Properties
File Operation Settings:
-
Directory path Enter the path to the directory where the file to be renamed is located. You can specify an absolute or relative path. If a relative path is used, then the path relates to the Base Path variable.
-
File Name Enter the name here of the file that is to be renamed.
-
New File Name Here you enter he new name of the file to be renamed.
Other Properties that are the same in all Action Steps are described in the section on Common Properties. For reasons of clarity they are not shown here.
Inbound Variables
Directory path Enter the path to the directory where the file to be renamed is located. You can specify an absolute or relative path. If a relative path is used, then the path relates to the Base Path variable.
File Name Enter the name here of the file that is to be renamed.
New File Name Here you enter he new name of the file to be renamed.
Outbound Variables
IsRenamed The Rename File.IsRenamed variable indicates whether the file could be renamed or not (True/False).
New File Name The Rename File.New file Name provides the file’s new name.
File name The Rename File.File Name variable provides the name of the file that is to be renamed.
Directory path The Rename File.Directory Path variable provides the path that is used.
Wizard
-
Directory path Specify the path to the file that is to be renamed. You can create an absolute path or a path relative to the Base Path. The initial value is %STWS_BASEPATH%. Select an existing path. You can also insert variables from the Workflow in order to construct the path. To do so, click on the pin and select one of the available variables.
-
File name Enter the name of the file here that is to be renamed. You can also insert a variable from the Workflow as the File Name. To do so, click on the pin and select one of the available variables.
-
New file name Enter the new name for the file here. You can also insert a variable from the Workflow as the New file name. To do so, click on the pin and select one of the available variables.