

To see the full syntax, type robocopy /? at a command prompt, or take a look at these blog posts: and Robocopy C:\some_directory D:\some_directory /DCOPY:T /COPY:T /S If you only want to preserve date and directory timestamps, but do not want empty subdirectories copied over and do not want other attributes preserved then you may use: R:0: do not retry locked files (the number of retries on failed copies default value is 1 million), /E: Copy directories recursively, including Empty Directories./DCOPY:T preserve original Directories' Timestamps (requires version XP026 or later).Robocopy C:\some_directory D:\some_directory /DCOPY:T /COPYALL /E /R:0 On my windows 10 machine it is located at C:\Windows\System32įrom Wikipedia, it can be used with the following set of options to preserve file and directory timestamps, as well as other attributes: Robocopy command line tool (comes with most versions of windows)
