Question

I'm using a robocopy batch script to move files from one server to another,
but I need it to delete the files on the original server after it is done
(which should happen when you use /move).

The copying works fine, but the files and folders aren't deleted afterwards.
Can anyone tell me what might be going wrong?

Command:

robocopy "\\Srv04\data\logs" "F:\Logs" /move /S /minage:8

thanks,

Was it helpful?

Solution 2

Question solved: It was a permission problem

OTHER TIPS

Gotcha:- Please note that using ROBOCOPY with the /MOVE command other than permission problems won’t remove source directories and files if those items already exists at the target because they will be skipped.

You can get around this by quoting a new target destination.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top