/
$cs.File_RenameFile

$cs.File_RenameFile

Syntax

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

Description

Renames a file if it exists.

Parameters

source

Source file to rename

dest

Destination name of file

overwrite

overwrite existing file if exists

Example

$cs.File_RenameFile("C:\Temp\dummy.txt","C:\Temp\moredummy.txt",$true)

returns nothing