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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top