What robocopy command copy all folders and files with original dates

jraju

New member
Member
VIP
Local time
10:56 AM
Messages
759
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 E:pendrive 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 Computer My Computer

At a glance

Microsoft Windows 7 Ultimate 64-bit 7601 Mult...Intel(R) Core(TM)2 Duo CPU E7200 @ 2.53GHz4.00 GBNVIDIA GeForce 210
Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom build
OS
Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM)2 Duo CPU E7200 @ 2.53GHz
Motherboard
To be filled by O.E.M. To be filled by O.E.M.
Memory
4.00 GB
Graphics Card(s)
NVIDIA GeForce 210
Sound Card
(1) NVIDIA High Definition Audio (2) Realtek High Definiti
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
ST3500312CS ATA Device

My Computer My Computer

At a glance

Windows 10 Pro X64Intel Quad Core i7-4770 @ 3.4Ghz16.0GB PC3-12800 DDR3 SDRAM 1600 MHzIntel Integrated HD Graphics
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
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 Computer My Computer

At a glance

Microsoft Windows 7 Ultimate 64-bit 7601 Mult...Intel(R) Core(TM)2 Duo CPU E7200 @ 2.53GHz4.00 GBNVIDIA GeForce 210
Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom build
OS
Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM)2 Duo CPU E7200 @ 2.53GHz
Motherboard
To be filled by O.E.M. To be filled by O.E.M.
Memory
4.00 GB
Graphics Card(s)
NVIDIA GeForce 210
Sound Card
(1) NVIDIA High Definition Audio (2) Realtek High Definiti
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
ST3500312CS ATA Device
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.
 
Last edited:

My Computer My Computer

At a glance

Microsoft Windows 7 Ultimate 64-bit 7601 Mult...Intel(R) Core(TM)2 Duo CPU E7200 @ 2.53GHz4.00 GBNVIDIA GeForce 210
Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom build
OS
Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM)2 Duo CPU E7200 @ 2.53GHz
Motherboard
To be filled by O.E.M. To be filled by O.E.M.
Memory
4.00 GB
Graphics Card(s)
NVIDIA GeForce 210
Sound Card
(1) NVIDIA High Definition Audio (2) Realtek High Definiti
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
ST3500312CS ATA Device
Back
Top