Forum Discussion
CS_HelpDesk
2 years agoGoTo Contributor
Move a file to a destination.
---
$source = $null
$destination = $null
$overwrite = $false
If (-Not (Test-Path -Path $destination -PathType Container))
{
New-Item -Path $destination -ItemType Container
}
Move-Item $source -Destination $destination -Force:$overwrite –Verbose