Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Taking a hint from Helge Klein's answer, I looked more closely into <a href="http://technet.microsoft.com/en-us/library/cc733145.aspx">Robocopy</a>. It turns out Robocopy (the latest versions, such as that which comes with Windows 7) can actually duplicate the timestamp of the copied folder structure. There is also a "move" option that deletes the source directory after copying, but in Microsoft's infinite wisdom this is incompatible with the "preserve directory timestamp" option, so you'll have to delete the source tree after doing the copy.</p> <p>The command-line argument options are daunting. I did some studying, and the basic command to copy preserving directory timestamps using Robocopy is this:</p> <pre><code>robocopy %1 %2 /e /dcopy:T </code></pre> <p>...where <code>%1</code> is the source directory and <code>%2</code> is the destination directory.</p> <p>If you want to make sure you copy <em>everything</em>, including NTFS security, owner, and auditing permission, specify that all attributes should be copied and use backup mode, like this:</p> <pre><code>robocopy %1 %2 /b /e /copyall /dcopy:T </code></pre> <p>However, using these extra options will require full administrator permissions (not just an administrator account). For example, click <strong>Start</strong>, right-click on <strong>Command Prompt</strong>, and then select <strong>Run as administrator</strong>. Then enter the above command.</p> <p>P.S. I've verified that Robocopy transfers NTFS streams as well.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload