Skip to main content

Rename File - Windows

Overview​

Renames any type of file using the specified file path, current file name, and new file name. If the new file name already exists, no action is taken and the script exits successfully.

Sample Run​

SampleRun

Parameters​

NameExampleAccepted ValuesRequiredDefaultTypeDescription
FilePathC:\TempStringTrue-String/TextThe directory containing the file.
OldFileNameOldFile.txtStringTrue-String/TextThe current name of the file.
NewFileNameNewFile.txtStringTrue-String/TextThe new name for the file.

Automation Setup/Import​

Automation Configuration

Output​

  • Activity Details

Changelog​

2026-08-17​

  • Initial version of the document