$cs.File\_RenameFile
Syntax
Section titled “Syntax”$cs.File_RenameFile(string source, string dest, bool overwrite = true)
Description
Section titled “Description”Renames a file if it exists.
Parameters
Section titled “Parameters”source
Source file to rename
dest
Destination name of file
overwrite
overwrite existing file if exists
Example
Section titled “Example”$cs.File_RenameFile("C:\Temp\dummy.txt","C:\Temp\moredummy.txt",$true)returns nothing