Re: Preserve "original" date when copying file?



=?Utf-8?B?TWFyayBMLiBGZXJndXNvbg==?= wrote:

Zip it, then unzip it to another location.
--
helpful? click "Yes" button. Voting helps the web interface.
http://www.microsoft.com/windowsxp/expertzone/newsgroups/reader.mspx?dg=microsoft.public.wi
ndowsxp.help_and_support
Mark L. Ferguson

"CJ" wrote:

How do I copy a file and preserve the "original" date (instead of the date it
was copied)? Thanks, CJ

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.
--
rhhardin@xxxxxxxxxxxxxx

On the internet, nobody knows you're a jerk.
.