Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Wednesday, April 8, 2015 7:54 PM
Hey guys, I'm trying to move some folders after a backup to overwrite old backups...i read online that Move-Item with -force will overwrite but no such luck
"Can't move file because files with the same name exist"
Move-Item H:\VMBackup\Current\ H:\VMBackup\Old -force
Do any of you know how to actually do this? Google has let me down today.
All replies (2)
Wednesday, April 8, 2015 8:53 PM | 1 vote
Try:
Get-ChildItem H:\VMBackup\Current\ -file | Move-Item -destination H:\VMBackup\Old -force
\(ツ)_/
Wednesday, April 8, 2015 8:54 PM
The -force parameter should overwrite files with the same name. Is it possible that you don't have adequate permissions on the files you want to overwrite in the destination directory?