Robocopy跳过/ MOVE上的文件

时间:2018-11-12 15:35:43

标签: windows scripting robocopy copying file-move

我正在尝试自动执行一些用户离职。其中一部分是将用户个人资料从一个位置移动到另一位置。我在PS脚本中使用RoboCopy。多数情况下,这似乎都有效。问题是,我有一个用户正在尝试为其移动文件。一些文件仍然保留。这是我正在使用的命令:

Robocopy \\<source_Path>\ \\Dest_Path\ /r:5 /E /IS /IT /MOVE /log+:<logfile> /V

Robocopy标志执行以下操作:

/r:5 -- retry 5x (Really probably don't need) 
/E -- include empty subdirs /IS -- include "Same" files (This is what doesn't seem to be working) 
/IT -- include "Tweaked" files (This broke too?) 
/MOVE -- Yes, I want to MOVE the files; i.e., delete them after they've been copied. That's sorta the whole point of this entire exercise  
/log bla bla yeah a log file.

/ IS和/ IT应该确实在照顾它;但是这是我在日志文件中得到的内容(出于简洁/厌恶而被选中):

-------------------------------------------------------------------------------
   ROBOCOPY     ::     Robust File Copy for Windows                              
-------------------------------------------------------------------------------

Started : Monday, November 12, 2018 10:03:11 AM
  Source : \\server\Home\<USER>\
   Dest : \\destination\path\

Files : *.*

Options : *.* /V /S /E /DCOPY:DA /COPY:DAT /MOVE /IS /IT /R:5 /W:30 

------------------------------------------------------------------------------

                   0    \\stuff\
*EXTRA Dir        -1    \\stuff\
                 130    \\stuff\
*EXTRA File     191488  Thumbs.db
.
.
<132 files & Stuff Concatenated)
.        
      modified         1.5 m    stuff& Stuff.PNG

------------------------------------------------------------------------------

           Total    Copied   Skipped  Mismatch    FAILED    Extras
Dirs :         3         0         3         0         0         1
Files :       132        14       118         0         0         1
Bytes :  706.66 m   381.4 k  706.29 m         0         0   187.0 k
Times :   0:00:00   0:00:00                       0:00:00   0:00:00

0 个答案:

没有答案