Имя пользователя:
Пароль:
 

Показать сообщение отдельно

Аватара для YuS_2

Crazy


Contributor


Сообщения: 1235
Благодарности: 518

Профиль | Отправить PM | Цитировать


Цитата Shurik006:
Т.е. она сначала копирует, затем удаляет и эта операция происходит дольше. »
В спецификации утилиты robocopy сказано:
Цитата:
/MOV Moves files (that is, deletes source files after copying).
/MOVE Moves files and directories (that is, deletes source files and directories after copying).
Цитата:
In some situations, you may want to move files instead of copying them, especially if disk space is at a premium on your network. You can use the /MOVE switch to delete source files from the source directory tree after they have been successfully copied to the destination. /MOVE also deletes empty directories from the source directory tree.
Even with /MOVE specified, however, Robocopy deletes only those source files that it successfully copies to the destination. There is no guarantee that a skipped source file is identical to its corresponding destination file (even if the file times and sizes are identical) until immediately following a successful copy. For that reason, some files and directories (such as skipped Same files) might remain in the source tree even when /MOVE is specified. You must determine whether to delete the remaining entries, and do so manually.
Т.е. это утилита именно копирования, а удаление происходит уже после успешного копирования и никак иначе.
- Утром деньги, вечером стулья
- А можно наоборот?
- Можно, но деньги вперед!

-------
scio me nihil scire. Ѫ


Последний раз редактировалось YuS_2, 27-02-2019 в 06:00.

Это сообщение посчитали полезным следующие участники:

Отправлено: 05:54, 27-02-2019 | #12