سؤال

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