none
copy-files RRS feed

  • Question

  • Hi

    Is there any way to copy files with "x" days old, respecting the structure and the modified date?

    Saturday, January 7, 2017 7:37 PM

Answers

  • The search would have shown you RoboCopy.  It can copy the dates.

    This is not really a scripting issue. It is more of a "how does Windows work" question.

    Read the help on RoboCopy and post questions i  the Windows forum for your OS version. 


    \_(ツ)_/

    Saturday, January 7, 2017 8:22 PM
  • YOU should also know that you have asked for both creation and modified date.  In a file copy the creationtime is always updated but teh "modified" date is never changed. Only a write operation on the file will reset the modified time.  This is fundamental to the Windows API.

    Moving a file does not change the creation time when moving within the same volume.


    \_(ツ)_/

    Saturday, January 7, 2017 8:54 PM

All replies

  • Start by typing this in you search engine: "help copy files older than date"

    \_(ツ)_/

    Saturday, January 7, 2017 7:52 PM
  • Ok, but it is possible to maintain the date of creation?
    Saturday, January 7, 2017 8:18 PM
  • The search would have shown you RoboCopy.  It can copy the dates.

    This is not really a scripting issue. It is more of a "how does Windows work" question.

    Read the help on RoboCopy and post questions i  the Windows forum for your OS version. 


    \_(ツ)_/

    Saturday, January 7, 2017 8:22 PM
  • YOU should also know that you have asked for both creation and modified date.  In a file copy the creationtime is always updated but teh "modified" date is never changed. Only a write operation on the file will reset the modified time.  This is fundamental to the Windows API.

    Moving a file does not change the creation time when moving within the same volume.


    \_(ツ)_/

    Saturday, January 7, 2017 8:54 PM