- Documentation
- Activities
- Files & Folders
- Rename File
Renames a file in its current folder.
Inputs
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
File oldPath | file | Required | — | — |
New Name newName | string | Required | — | — |
Overwrite Existing overwriteExisting | boolean | Optional | false | — |
Output Variable outputVariable | variable | Optional | RenameResult | — |
Output
$outputVariableObjectObject describing the rename result. Reference {RenameResult.newPath}, {RenameResult.oldPath}, {RenameResult.name}, {RenameResult.overwritten}, or {RenameResult} alone (resolves to the new full path).
successBooleanoldPathStringnewPathStringnameStringoverwrittenBooleanpathString
Compatibility
WindowsLinuxAttendedUnattended
Related activities
Append Text File
Adds text to the end of an existing .txt file.
Copy File
Copies a file to a specified destination while keeping the original file unchanged.
Create File
Creates a new file at the specified location.
Delete File
Permanently deletes a file.
File Exists
Checks whether a file exists at the specified path.
Get File Info
Returns metadata about a file: name, size, dates, and read-only flag.