Skip to main content

Rename File

Command description

Renames the specified file and returns the new file path.

Command Input Parameters

input parametersInput parameter typeDescription
File PathstrPath of the file to rename
New File NamestrNew filename, including filename and extension

Command Output Parameters

Output parametersOutput parameter typeDescription
New File PathstrRenamed file path

Edge Cases

  • The command reports an error if File Path does not exist. If it points to a folder, use "Rename Folder".
  • Renaming occurs within the same parent directory. If the new path already exists, the command reports an error and does not overwrite it.

Generation Notes

  • Change only the file name. Use "Move Files" to move files to another directory.