How do I copy folders to another drive and maintain the Date Created attribute?

I need to copy about 200 folders to another drive and I need to retain the date created and date modified attributes. I'm running Windows 8.1. How do I accomplish this?

John CarneyReliability Business Tools Analyst IIAsked:
Who is Participating?
ROBOCOPY  "C:\Cakewalk Projects"  J:\  /MIR /COPY:DAT /DCOPY:T 

Open in new window

You can natively run robocopy from anywhere in windows.

ZB specified by Mahesh above allows for you to restart if the copy breaks.

Please read the link below to better understand the command.

/MT can help to speed things up:

Creates multi-threaded copies with N threads. N must be an integer between 1 and 128. The default value for N is 8.

The /MT parameter cannot be used with the /IPG and /EFSRAW parameters.

Redirect output using /LOG option for better performance.
ROBOCOPY c:\src d:\dest /MIR /COPY:DT /DCOPY:T

Will copy all files and folders and preserve the date and time stamps.


Will copy all files and folders and preserve the date & time stamps
use robocopy built-in tool to copy data from one drive to another

Robocopy <source drive> <destination drive> /e /copyall /zb


Robocopy D:\ E:\ /e /copyall /zb

This should take care of everything, use Robocopy with elevated command prompt
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Akashay KCommented:
Download the RoboCopy Resource Kit Tools from the Microsoft

Watch Youtube video for software in action
Further Learning Resource

TechHead article illustring how to copy without timestamp changes
John CarneyReliability Business Tools Analyst IIAuthor Commented:
Thanks Mahesh and Akashay K. Am I correct in assuming that RoboCopy is not a brand name but rather a free app from Microsoft?  

If so, do I type something  into a command prompt? Or in a "robocopy' dialog box? And how would I copy not the whole drive but one folder only with 200 subfolders, and would it retain the dates on all subfolders. In my case it would be "Cakewalk Projects" on my C drive  to my J Drive. How would i write that?

Robocopy is the command line utility stored under system32 folder

It is built-in utility on your win 8 \ 8.1 \ 7 machines

If you want to check syntax of command you can simply type Robocopy /?

Robocopy by default copy all sub folders \ files within provided path in incremental way

What I mean if you 1st time copy one folder with 200 sub folders and next time you add 10 new folders in source, then if you run same path again from robocopy, it will copy only those new 10 folders (incremental copy)

To copy folder with 200 sub folders syntax could be:

Robocopy.exe D:\folderx E:\folderx /e /zb /copyall

This should copy root folder along with 200 sub folders including time stamp (all attributes including NTFS permissions as well)
John CarneyReliability Business Tools Analyst IIAuthor Commented:
Thanks, everyone!

becraig, so is this exactly what I enter into the command line: ROBOCOPY  "C:\Cakewalk Projects"  J:\  /MIR /COPY:DAT /DCOPY:T ? And that's it?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.