Forum Discussion
AlexanderLindberg
Jul 14, 2022Copper Contributor
Robocopy - Bugs and suggestions
Hello, I don't really know where to reach out, but I really do love Robocopy and hope that someone inside MS finds the tool valuable enough to continue it's development. I've come across a few issu...
AlexanderLindberg
Jul 15, 2022Copper Contributor
As a workaround for the first problem, this PowerShell script provides a simple solution:
Start-Job -ScriptBlock {
robocopy <sourcedir> <destdir> /MOV /MON:1
}
while (1) {
try {Get-ChildItem <sourcedir> | Foreach-Object {$_.LastWriteTime = Get-Date}}
catch{}
Start-Sleep -Seconds 10
}