Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: What robocopy command copy all folders and files with original dates

04 Mar 2016   #1

windows 7 ultimate 32 bit
What robocopy command copy all folders and files with original dates

I want to copy the contents of pen drive to E drive. The pendrive drive is F. Now i want all the folders and files to have the same date it was as in the pen drive, when i stored .
Normally when i copy, all the files retain original date but folders get todate. Meaning less if date specific creation of folder is needed.
I heard that robocopy feature in command would give me a way to it. Reading in microsoft or in other forums, including in this forum would not solve my problem. as it is total technical in nature of using switches in command.
My specific need is date of the folders and folder in the pendrive F to be copied to E: in one new folder, say Eendrive copy .
Dcopy is one of the sub command. I want total command for this . There may be experts in this commands. Please let me know , how to accomplish this. The command help of microsoft only know to the tech experts, who knows all /\ switches. As a newbie to this subject, i do not know how to issue the command prompt command.

My System SpecsSystem Spec
04 Mar 2016   #2

Windows 10 Pro X64

I did a Google search for your thread title: robocopy command copy all folders and files with original dates

Got the following: What switches can robocopy use to preserve file and directory times on the target?
My System SpecsSystem Spec
05 Mar 2016   #3

windows 7 ultimate 32 bit

Probably you may be correct. The files get origianal date and not folders . Might be that i would have copied without executing the above command in the first instance when i copied the contents from pendrive to computer. should check, whether folder also retains the same old original date.
Normally when you use explorer, it gives you, the folder modified, date modified tab, date.But looking inside, you could see the created date.
My doubt is even normal copy does the same, then why robocopy? If you copy paste, then the folder gets the date of copying and the files there in original dates?
Anyhow, thanks for the specific link. I my self went there, but could not understand. When you give that link, i tried, and found files in original and folders in new dates.
When you see the folders , there is a thinking that the folders have been created only recently, if you view the explorer view.
My System SpecsSystem Spec

05 Mar 2016   #4

windows 7 ultimate 32 bit

Yes. I tried by changing the system date to 2 years back and then created folder on 3/5/2014. I also changed the date by one day 4/5/2014 and created a note file. Then i changed the date today. I tried your link and it also retains the folder date.
So, one must be care to use that formula when one copies one drive and then format the pendrive to recopy it.
The funniest thing is the folder shows one day ahead of the created folder, because a file was created in the folder one day later.
Would you explain this behavior of changing the folder date by one day . Is there a connection between folder folder created date and files that are added to it. I will be waiting.

That formula you suggested is the exact formula to retain the previous dates of folders as well as files.
My System SpecsSystem Spec

 What robocopy command copy all folders and files with original dates

Thread Tools

Similar help and support threads
Thread Forum
How to extract from rar and maintain original folder dates?
Seemes to be another w7 annoyance ... How to extract from rar and maintain original folder dates? I have a memory stick which I need to copy to other USB stick with original folder creation dates. I have created a rar from original USB stick with original folder dates but when trying to unrar,...
General Discussion
Cannot copy folders to camera but can copy individual files
Hi there! I'm unable to copy/move folders from my PC to my camera. But I'm able to copy individual photos and files. Can anyone help me out here?
Hardware & Devices
Move files from original folder to existing folders - w batch file?
My files have a format of "ID_date_time.d7d Ex: 11111-5_2013_10_07_142149.d7d The ID is 1111-5 and was tested 10/7/2013 at 2:21:49 PM and the file extension is always .d7d The local files are automatically saved here by the program generating the data: C:\Local\Data I want them copied...
General Discussion
Issue with Robocopy only copying folders, not files, in Windows 7
Last week I used a robocopy tutorial on this site to create a backup script, and it was working fine. Today I tried to run this script, inputting new destination information but leaving everything else the same, and now it is copying all of the folders, but none of the files. It counts a total...
Backup and Restore
How to fix wrong Created, Modified, Accessed dates on files/folders?
Cleaning up the friend of a friend's completely virus infested, badly working computer. Windows 7x64 HP Pavilion g6 Notebook PC The Basics: While I was beginning to install and manually offline-update various anti-malware tools so that I could begin to determine what I needed to do to...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 13:40.
Twitter Facebook