Вопрос

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,

Это было полезно?

Решение 2

Question solved: It was a permission problem

Другие советы

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top