Use Robocopy to preserve directory-dates

From Vista on Robocopy has the switch “/dcopy:T” which includes the dates of directories in copies.

/np supresses the copy count in the log file.

Gerell usage (use “” for paths with spaces in) – and exclude files and dirs with “recycler” or “system” in the name (usually system files):

robocopy source destination /mir /log:logfilename.txt /dcopy:T /XD RECYCLER SYSTEM* /np

Use /e instead of /mir if you dont want robocopy to delete anything on the destination disk (as it does if the source doesnt contain any files/directories any more that where existent on the destination; “mir” stands for mirror).

Parameters:

http://technet.microsoft.com/en-us/library/cc733145%28WS.10%29.aspx

Robocopy Gui is old and doesnt include /dcopy:T

http://www.heise.de/software/download/microsoft_robocopy_gui/38906

As an alternative use “Synchronize Dirs” command in Total Commander:

http://www.ghisler.com/

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

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