$cs.File_RenameDir

Syntax

$cs.File_RenameDir(string source, string dest, bool overwrite = true)

 

Parameters

source

Source directory to rename

dest

Destination name of directory

overwrite

overwrite existing directory if exists (equals copytree and delete source)

 

Example

$cs.File_RenameDir("C:\Temp","C:\Temp2",$false)

returns nothing

Â