$cs.File\_RenameDir
Syntax
Section titled “Syntax”$cs.File_RenameDir(string source, string dest, bool overwrite = true)
Description
Section titled “Description”Renames a directory if it exists
Parameters
Section titled “Parameters”source
Source directory to rename
dest
Destination name of directory
overwrite
overwrite existing directory if exists (equals copytree and delete source)
Example
Section titled “Example”$cs.File_RenameDir("C:\Temp","C:\Temp2",$false)returns nothing