Skip to end of banner
Go to start of banner

renameFile

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Description

Renames a file. Returns "true" if the file was renamed successfully and "false" otherwise. If "false" is returned check the log for a detailed reason on why it failed.

Parameters

Return Type

Boolean (true/false)

Example

renameFile("C:/source.txt", "C:/destination.txt");

It returns 'true' if the source.txt file was renamed to destination.txt.

It is recommended that you use forward slashes ( / ) for file paths.

See also

  • No labels