Author Topic: Transfer File-Modified-Dates between two directories with different structures.  (Read 2393 times)

0 Members and 1 Guest are viewing this topic.

Offline ericnyc1000

  • Jr. Member
  • **
  • Posts: 1
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
All I needed was to reorganize files in a directory. So I changed the directory structure and redistributed the files.

Unfortunately, this changed all file ModifiedDates to the current date (cuz it was done on android). Here's how I plan to restore the original dates.

For each file in ReorganizedDir, find file with same name in OriginalDir and transfer its ModifiedDate.

As regards code, looping through ReorganizedDir and OriginalDir may require a FIND command or nested FOR-LOOP.  Then I can use TOUCH to transfer dates.

Suggestions?  Thanks.  Eric


SimplePortal 2.3.3 © 2008-2010, SimplePortal