Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I preserve the date and time information when I move files to another disk drive?

I would like to preserve the last modified date and time, and also the creation date and time. I want to basically preserve as much as I can about that file, without altering it in any way.

I have come across discussions about the robocopy command. But this seem to work only when you copy whole directory trees, together with the files. So what if I only want to copy 1 single file? Are there any other alternatives?

As a side note, I am not looking for a way to copy the file, I would like to move it, not copy it. But perhaps that can be arranged by simply copying it first and then deleting the original source file. But it may not work in the same command, so it would have to be a two step process.

One workaround that I have come across is to archive the original file into a ZIP file, move it to the destination, extract it from ZIP. Then remove the ZIP file and the source file. But this seems very tedious work and time consuming, especially when dealing with large files. Of course you don't have to wait for compressing the file, you can just archive it in a ZIP file without compression. But it's still tedious.

share|improve this question
    
Take a look at this similar question: superuser.com/questions/146125/… –  amiregelz Aug 8 '12 at 11:33
    
    
Thanks! Looks like the Robocopy GUI has been discontinued. It has been replaced with RichCopy, and it looks like this new tool offers the option to "move" the files instead of copying them. I will try this one. And to answer my question about robocopy, is it possible to use it to copy single files? What would the command syntax for this look like? Again, I am not after mirroring complete directory trees. –  sammyg Aug 8 '12 at 17:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.