Computing.Net > Forums > Windows XP > Copy files with original date/time

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Copy files with original date/time

Reply to Message Icon

Name: Alex2002
Date: December 5, 2005 at 07:23:25 Pacific
OS: XP Pro
CPU/Ram: 3200,1GB
Comment:

Just wondering if anyone could let me know, is there a tool or program available that will copy files across to another drive without changing their date/time stamp? For example, if I copy an old file from Drive C, say from 2001, to my Drive E to back it up, then it will change the date to 5th December, todays date. Anyway to overcome this?

Cheers



Sponsored Link
Ads by Google

Response Number 1
Name: Jennifer SUMN
Date: December 5, 2005 at 09:46:31 Pacific
Reply:

In a command window, run xcopy with the following switches:

/s/e/c/a/k/h

Soylent Green is PEOPLE!!!


0

Response Number 2
Name: Mechanix2Go
Date: December 5, 2005 at 10:04:22 Pacific
Reply:

Hi Jennifer,

That works great.

I wish I knew why.


If at first you don't succeed, you're about average.

M2


0

Response Number 3
Name: XpUser
Date: December 5, 2005 at 10:13:13 Pacific
Reply:

I wonder if xcopy is limited to the 8.3 filename format ... in other words can it also long filename?

i_XpUser


0

Response Number 4
Name: Mechanix2Go
Date: December 5, 2005 at 10:26:14 Pacific
Reply:

xcopy in w2k/xp does LFNs.


If at first you don't succeed, you're about average.

M2


0

Response Number 5
Name: XpUser
Date: December 5, 2005 at 10:29:05 Pacific
Reply:

Thanks - I've not tried it - I'm just too lazy today :-)

i_XpUser


0

Related Posts

See More



Response Number 6
Name: Alex2002
Date: December 5, 2005 at 10:29:10 Pacific
Reply:

Thanks for the tip, sadly it doesn't work for me in the way that I thought. As when doing a normal copy (in explorer, copy and pasting files) the "modified date" shows as an old date like 2002 for example. But the "created date" will show December 5th. Looks a bit silly having a file that was modified in 2002 reporting that it was created in 2005! Oh well, looks like i'll have to put up with it!..

..unless anyone here knows of a way around that :P

Thanks


0

Response Number 7
Name: XpUser
Date: December 5, 2005 at 10:34:28 Pacific
Reply:

Alex2002,

Is your file system NTFS?


i_XpUser


0

Response Number 8
Name: Alex2002
Date: December 5, 2005 at 10:40:22 Pacific
Reply:

It is indeed


0

Response Number 9
Name: XpUser
Date: December 5, 2005 at 10:47:40 Pacific
Reply:

That's the problem with NTFS. NTFS timestamp is hard to beat.

I'll share with you what I have adopted 10 years ago. For every filename I created, I prefix it with YYMMDD. By following this practice, I can easily access a file either by date or by description.

i_XpUser


0

Response Number 10
Name: Mechanix2Go
Date: December 5, 2005 at 10:54:37 Pacific
Reply:

After I read the OP, I spent about an hour on a BAT but it was becomming too much of a kludge.

So I went scrabbling about for a better TOUCH than the Borland TC++.

But if you're stuck on using Explorer, I guess you're out of luck.

An inquiring mind might wonder what good creation, modified and accessed dates are if all you can do is gawk at them.

I hope Jennifer gets back and tells us why her trick works.


If at first you don't succeed, you're about average.

M2


0

Response Number 11
Name: afbyorb
Date: December 5, 2005 at 20:57:35 Pacific
Reply:

How about zipping it and unzipping it?


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: Copy files with original date/time

Losing file attributes while copy! www.computing.net/answers/windows-xp/losing-file-attributes-while-copy/163478.html

Copy files according to Date Mdified www.computing.net/answers/windows-xp/copy-files-according-to-date-mdified/176041.html

Copy files preserving metadata? www.computing.net/answers/windows-xp/copy-files-preserving-metadata/153089.html