Rename File

This Automation Manager object renames a file with a new name.

Privileges

Normal

Input Parameters

Name Type Required Description
File Name String Yes The full path of the file to be renamed.
New Name String Yes The new file name.

Output Parameters

Name Type Description
Result Number Returns a success value of zero or any value other than zero to indicate failure.

Example Input Parameters

Name Type Required Example
File Name String Yes C:\folder1\folder2\file1.txt
New Name String Yes C:\folder1\folder2\file2.doc