Forum Discussion
CS_HelpDesk
2 years agoGoTo Contributor
Upload files and set their destination.
File location is an example.
--
$destination = 'C:\DistributedFiles'
$overwrite = $false
If (-Not (Test-Path -Path $destination -PathType Container))
{
New-Item -Path $destination -ItemType Container
}
$resolve_Files | % { Move-Item -Path $_ -Destination $destination -Force:$overwrite }