Robocopy

To move files & folders from one location to another without security:

robocopy <source_directory> <target_directory> /TEE /E /MOVE /R:2 /W:1 /LOG+:c:\LOG.txt

To copy files & folders from one location to another with security: (to copy without security, don’t include /copyall)

robocopy <source_directory> <target_directory> /copyall /E /B /R:2 /W:1 /LOG+:c:\LOG.txt /TEE

To copy files & folders from one location to another without security, and eXclude "eXtra" files and directories (present in destination but not source):

robocopy <source_directory> <target_directory> /e /b /r:2 /w:1 /XX /LOG+:c:\rcopy.log /TEE

To copy only NTFS security permissions and no data to, and eXclude new, old or changed files (in other words ALL files). This will include all sub-directories also empty ones:

robocopy <source_directory> <target_directory> /e /secfix /copyall /xo /xn /xc /r:2 /w:1 /XX /LOG+:c:\rcopy.log /TEE

Computers and Internet Uncategorized

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: