How to Preserve File Date Created and Folder Dates When Copying Files in Windows

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ต.ค. 2024

ความคิดเห็น • 87

  • @armchair69
    @armchair69 7 หลายเดือนก่อน +5

    How can I use this command on a phone connected to pc via cable (not a C or an E drive)?

    • @kinjoko
      @kinjoko 4 หลายเดือนก่อน +1

      Because of how Windows works with other devices like phones (or rather how phones themselves connect to computers), the easiest option would probably be to zip/7z all of the files you want, transfer the compressed file to the computer and then extract it. I haven't tried this myself but from my experience it should preserve the files' metadata

  • @Odswietny
    @Odswietny ปีที่แล้ว +14

    Useful information and explained in a simple way. Good job 🙂

  • @UrikaTractor
    @UrikaTractor 10 หลายเดือนก่อน +24

    here's the command so you can copy and paste
    robocopy "C:\Copy Path" C:\Paste Path /E /DCOPY:DAT
    just replace the path names

    • @huyen.s
      @huyen.s 8 หลายเดือนก่อน +1

      THANKS UrikaTractor! IM VERY HAPPY YOU PROVIDED ME WITH THIS AS I DO NOT HAVE TO MANUALLY HAVE TO TYPE IT OUT!

    • @HeadshotOtaku
      @HeadshotOtaku 5 หลายเดือนก่อน +4

      Just a note for other people, quotation marks (" ") is need if the file path have spaces
      e.g.
      "C:\Copy Path\Copy Path\Copy Path\CopyPasta\Copy Pathta" - quotation marks needed
      C:\CopyPatsta\CopyPahsta\CopyPatsa\CopyPaste - don't need quotation marks

  • @Leurak
    @Leurak 4 หลายเดือนก่อน +5

    Keeping the original timestamps should really be the default. For some reason, OS devs decided basically erasing metadata when copying folders is good practice. It's the same on Linux (at least for KDE's default file manager), you need the terminal to copy files preserving this data.

    • @LizVanLee
      @LizVanLee หลายเดือนก่อน

      on Linux and kde i have never encountered that behavior. at least on fedora dolphin behaves not at all like that.

    • @Leurak
      @Leurak หลายเดือนก่อน

      @@LizVanLee did you move the files perhaps? that preserves timestamps. but maybe i did something wrong myself

  • @eyebee73
    @eyebee73 5 หลายเดือนก่อน +2

    Man, your a god send! I got a new drive and moved all my movies from the old drive to the new one and titles from 7 years ago were all showing as recently added in my Plex server. Thanks to you and this perfectly laid out video I was able to correct the dates and now my recently added movies are once again displaying correctly. THANK YOU! Seemed to take a little longer than copy/paste, but that's perfectly fine by me.

  • @pdxtim1377
    @pdxtim1377 16 วันที่ผ่านมา

    Robocopy is awesome! Microsoft should include this type of functionality in file explorer.

  • @patrickultra
    @patrickultra 8 หลายเดือนก่อน +1

    Thanks you! It fixed my issue of Folder's Date Modified was changed to current date time when copy file from exFAT HDD to Windows 11.

  • @kingofdubs
    @kingofdubs 8 หลายเดือนก่อน +2

    Thanks so much for this! It REALLY helped for what I needed to do.

  • @kevinme
    @kevinme 10 หลายเดือนก่อน +3

    This is so helpful, thank you for making this video!

  • @armchair69
    @armchair69 7 หลายเดือนก่อน +3

    why does mine say system can not find the path specified? I am trying to copy files from my phone to an sd card

    • @RandMV
      @RandMV 7 หลายเดือนก่อน

      Because your phone isn't mounted as disk like other partitions
      You can try "Total Commander" for Android, it keeps file dates when copying

    • @armchair69
      @armchair69 5 หลายเดือนก่อน +2

      Whoever liked this, nvm, I got a new phone with 512 gb and IT IS AWESOME I no longer have to worry about space and moving stuff around SD cards 😭😭

    • @RandMV
      @RandMV 5 หลายเดือนก่อน +1

      @@armchair69 I was also in a situation similar to yours, but after watching this video I continued investigating, and it turns out that Robocopy wouldn't work on Android due to Windows limitations (it doesn't recognize the phone as a disk and doesn't assign a letter to it).
      In the end I was able to do what I needed, and I did it with an app called "Total Commander"... I just forgot to come back here and comment it 😭

  • @LifeinGlow
    @LifeinGlow 6 หลายเดือนก่อน +2

    thank you for the video but it is kind of ridiculous that so many people suffer from this problem (not to criticize the video but rather windows 11). I find it frustrating to notice that many files that I've copied earlier have a new "date created" and I already deleted the original files on the phone so have no way of restoring the data, especially for vlogs / channels and any archival materials it screws up a lot of things. why would a system do that first thing without giving you an option at least? I remember once in my backup actions on some day when I right-clicked on the folder in my iphone XR, there was an options to transfer with keeping a date - like a special window was possible to open and choose your settings and where to copy photos and videos but overall it's been a nightmare since my Android Samsung S8 stopped working, where I could easily copy "by album" which is so much better for efficient backup and date was preserved and even in the name of the file there was a date unless I'd rename it (my preferred system for fast backup from a phone).

    • @LizVanLee
      @LizVanLee หลายเดือนก่อน

      meta dates on file systems are inherently flawed anyways. and of all possibilities to handle the situation Microsoft chose by far the worst approach. actually there should be at least meta date fields for file created, file modified, content created and content modified.

  • @JorgeRzezak
    @JorgeRzezak หลายเดือนก่อน

    great video! very useful! Thanks!
    is there any application like total commander or similar that you can do it without a command line?

  • @elcarumba4850
    @elcarumba4850 ปีที่แล้ว +4

    Thanks, however when I used /DCOPY:DAT it returned an error - looking at the command options this was shown as /DCOPY:T and that worked for me.
    However, I am still using a Windows 7 machine and this may have changed in Windows 10 to the one mentioned in this video. Either way, if one doesn't work try the other.

  • @cigaryno
    @cigaryno ปีที่แล้ว +3

    The build number is 10.0.19044. Are you using an LTSC version of Windows 10?

  • @m.a.x.i.m.o.4.k.a.
    @m.a.x.i.m.o.4.k.a. หลายเดือนก่อน +1

    I was transferring my files to pc and almost all my files were dated as 5 September which is not rue and i formatted the sd card, will the command work?

  • @Nomis180
    @Nomis180 10 หลายเดือนก่อน +1

    Thank you!

  • @zainrehman9020
    @zainrehman9020 หลายเดือนก่อน

    Thank you so much sir

  • @anmac6910
    @anmac6910 ปีที่แล้ว +3

    There is a misconception here. Before you copy verify the date and timestamp of the F:/Backup folder before and after copy. You will realize the difference

    • @World_of_OSes
      @World_of_OSes  ปีที่แล้ว

      ?

    • @anmac6910
      @anmac6910 ปีที่แล้ว +1

      @@World_of_OSes when your copying anything into the destination -- the dination will have yhe sourcea timestamp so you have to explicitly define the destination folder or file - for example, the destination ahould say ../“destination folder (after copy)” instead of …/destination which will replace the destination folder timestamp with the source directory timestamp

  • @saadsrequiemforsasuke7041
    @saadsrequiemforsasuke7041 3 หลายเดือนก่อน +1

    I want to copy my android device files to my laptop by USB cable and I want to preserve the creation date.
    I hope I can use the same command on this operation... Please I hope it works!!! 😓🙏🏼6:25pm 26.7.2024

  • @mr-eggman
    @mr-eggman 5 หลายเดือนก่อน

    it doesnt work when i tried to do the command it worked but it didnt paste anything to the other folder

  • @wartortlerulestheworld
    @wartortlerulestheworld ปีที่แล้ว +1

    Hey can you show us how to do this on Linux mostly Ubuntu based Distros.

  • @Ironbuket
    @Ironbuket 9 หลายเดือนก่อน

    What if I want to copy just one folder in a location where there are many folders? If I use the syntax given here it will only transfer over the content and not the actual root folder I am interested in. If I create that folder manually in advance at the target location it will have the wrong date. e.g. I only want to copy the folder 354 in your example. There must be some trick to do this? EDIT: Nevermind worked it out myself. If you put the source dir name in the target it then copies the root folder and has the correct date. e.g. robocopy C:\354 D:\354 /E /DCOPY:DAT

  • @agueda-aggie-balderrama8893
    @agueda-aggie-balderrama8893 4 หลายเดือนก่อน +3

    This isn’t working on Windows 11 😢

    • @Niglnws
      @Niglnws 4 หลายเดือนก่อน

      Did you found some way?

    • @World_of_OSes
      @World_of_OSes  หลายเดือนก่อน

      Isn't it?

  • @Noelle_uh
    @Noelle_uh 9 หลายเดือนก่อน

    Can you make a guide on how to do this but transferring from an iPhone to a Windows?

    • @World_of_OSes
      @World_of_OSes  9 หลายเดือนก่อน

      Usually that would use some kind of MTP.

  • @NourMostafa_Productions
    @NourMostafa_Productions ปีที่แล้ว +5

    What is this comment section?

  • @oskartv6684
    @oskartv6684 5 หลายเดือนก่อน

    Is that a VM made to look like your host PC?

    • @World_of_OSes
      @World_of_OSes  5 หลายเดือนก่อน

      Yes

    • @oskartv6684
      @oskartv6684 5 หลายเดือนก่อน

      @@World_of_OSes Did you manually make it like your host PC, or did you clone your hard drive into a VM?

  • @sarthak_jaykar
    @sarthak_jaykar 3 หลายเดือนก่อน

    i have external drive as my phone connected to pc with usb transfer . this method not work for it, shows 'path not found'. So is there any alternative method to do this as really wanted store my photos from phone to pc with its original dates🙂🙂🙂

    • @World_of_OSes
      @World_of_OSes  3 หลายเดือนก่อน

      Phones connected to a Windows PC use MTP, which doesn't have a drive letter.

    • @zsuzsannabirkes4052
      @zsuzsannabirkes4052 2 หลายเดือนก่อน

      ​@@World_of_OSes hey! Can i somehow still do it? So that it d work

  • @RDCST
    @RDCST 9 หลายเดือนก่อน

    What's the difference if I use /e /copyall instead /e /DCOPY:DAT?

    • @World_of_OSes
      @World_of_OSes  9 หลายเดือนก่อน

      learn.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy

  • @xxraxxanxx1135
    @xxraxxanxx1135 6 หลายเดือนก่อน +1

    How do I do this but from pc to android phone or from Android to pc

  • @shinshen9020
    @shinshen9020 2 หลายเดือนก่อน

    Why doesn't Microsoft do this directly? Ctrl+c to ctrl+v

  • @lavs8696
    @lavs8696 3 หลายเดือนก่อน

    my folders still were copied with todays date. any help?

    • @World_of_OSes
      @World_of_OSes  3 หลายเดือนก่อน

      Did you add `DCOPY:DAT`?

    • @lavs8696
      @lavs8696 3 หลายเดือนก่อน

      @@World_of_OSes yea im copying from one PC to another, so I used a hard drive, guessing I have to do it both times for it to work? I just did the robocopy the first time to a hard drive, then just moved it onto the new PC. going to try doing it twice now.

  • @HMODY-3821-A-Shrimp
    @HMODY-3821-A-Shrimp ปีที่แล้ว +1

    Copy file?

  • @musicera8966
    @musicera8966 ปีที่แล้ว +3

    is there an easier way to do this? like an app which lets your drag and drop a file?

  • @Odswietny
    @Odswietny ปีที่แล้ว

    What does "robocopy" mean?

  • @Beni_777
    @Beni_777 ปีที่แล้ว +1

    Should we switch from Win 10 to Win 11?

    • @phonl1
      @phonl1 ปีที่แล้ว +1

      If you don't have any problem with the latter then yes you can switch

    • @wartortlerulestheworld
      @wartortlerulestheworld ปีที่แล้ว +2

      NO! I HATE Windows 11 that OS Sucks! Also Dislike.

    • @wartortlerulestheworld
      @wartortlerulestheworld ปีที่แล้ว +2

      @@phonl1 I'm not going to Use Windows 11 unless I buy a new computer.

    • @VaiCaDep0893
      @VaiCaDep0893 ปีที่แล้ว +1

      @@wartortlerulestheworld I disagree with your opinion. Both are good

    • @VaiCaDep0893
      @VaiCaDep0893 ปีที่แล้ว +1

      You should use W10 LTSC 2021 for updates until 2032

  • @aylavsz
    @aylavsz 10 หลายเดือนก่อน

    i cant do this to an removable disk
    what do i do?

    • @aylavsz
      @aylavsz 10 หลายเดือนก่อน +2

      nvm i already found out, just go into properties> advanced> encrypt content to protect data
      i wanted to copy playlists I've downloaded with the original properties to my phone, couldn't do it through robocopy, after some hour trying how to do this i found out this simple way.

    • @Noelle_uh
      @Noelle_uh 9 หลายเดือนก่อน

      The encrypt content option is grayed out for me. I'm trying to transfer files from my iPhone to Windows. Any ideas? Anyone@@aylavsz

  • @eucalyptus2
    @eucalyptus2 3 หลายเดือนก่อน

    This was a waste time. The date creation into command line is the modified date.

  • @IndonesiaBallFreePalestine
    @IndonesiaBallFreePalestine ปีที่แล้ว +1

    Sixth

  • @lorenamartines41
    @lorenamartines41 ปีที่แล้ว

    Seventh

  • @What00054
    @What00054 ปีที่แล้ว +2

    Does not matter that much

    • @TTony
      @TTony ปีที่แล้ว +11

      I disagree, I hate it when the date gets changed as I don't remember when I recorded a specific video (I backup my videos from my phone to a hard drive in my computer).

    • @What00054
      @What00054 ปีที่แล้ว

      @@TTony You can add original date to file name and that's it

    • @TTony
      @TTony ปีที่แล้ว +5

      @@What00054 That completely defeats the point of the "date created" feature existing.

    • @DragonitaPurple
      @DragonitaPurple ปีที่แล้ว +4

      Then why did you come to this video

    • @What00054
      @What00054 ปีที่แล้ว

      @@DragonitaPurple Oh my gosh, am I not allowed to share my opinion on this?

  • @sovannsey2180
    @sovannsey2180 หลายเดือนก่อน

    Thank you!