Robocopy

Basic usage of robocopy – there are a lot more options, but this is what I find useful:

robocopy c:\temp\input\ c:\temp\output\ /E /COPY:DAT /DCOPY:DAT /XF excl1.* /XF excl2.* /XD excl* /MIR
  • /E will include subdirectories
  • /COPY uses DAT by default (Data, Attributes, Timestamps)
  • /DCOPY uses DA by default
  • /MIR will delete items that are in the target but not the source

Comments

Popular posts from this blog

Left Join in Entity Framework

JavaScript Spread Operator

Create Bootable USB from Windows