Preserve "original" date when copying file?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I copy a file and preserve the "original" date (instead of the date it
was copied)? Thanks, CJ
 
=?Utf-8?B?TWFyayBMLiBGZXJndXNvbg==?= said:
Zip it, then unzip it to another location.

Install Cygwin

then

$ cp file1 file1copy
$ touch -r file1 file1copy

Cygwin makes XP liveable.

$ man touch

for other options, like you want to make up a date and time.

I use it to put the time a photo was taken on its *.jpg file.
 
Back
Top