XCopy problem

I have created a backup batch file using the XCOPY command, and it works fine, except for the fact that the files copied to a CD all contain date and timestamps of when they were copied. Has anyone any idea how to keep the original date and time? As far as I can see there are no switches which allow me to do this.

Everything New Technology 1823 This topic was started by ,


data/avatar/default/avatar24.webp

60 Posts
Location -
Joined 2001-02-09
I have created a backup batch file using the XCOPY command, and it works fine, except for the fact that the files copied to a CD all contain date and timestamps of when they were copied. Has anyone any idea how to keep the original date and time? As far as I can see there are no switches which allow me to do this.
 
Any help would be appreciated.
 
Alan
 

Participate on our website and join the conversation

You have already an account on our website? Use the link below to login.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


data/avatar/default/avatar21.webp

316 Posts
Location -
Joined 2004-08-23
Hi Alan,
 
Try this
 
http://files.chatnfiles.com/The%20Pier%20Shareware%206/016/files.htm
 
Scroll to the bottom of the page and download ZCPY31.ZIP (44KB)
 
I tested it and it appears to work.
 
First I created two directories- "1" and "2" in the root C:\.
I copied some files into folder 1.
 
Then I executed this:
 
zcopy c:\1\*.* c:\2 /U
 
Everything in my folder 1 was copied to folder 2, retaining the timestamp
 
btw- the URL above indicates shareware- I cant see any indication of shareware since the readme file says:
 
" ZCOPY is here-by placed in Public Domain and can be considered freeware, ZCOPY may not be sold, hired, leased or modified, it may be freely copied as a complete package, usage of ZCOPY in commercial environments is only permitted with explicit approvement of the Author of ZCOPY (Chris Buijs).
"
 


data/avatar/default/avatar21.webp

316 Posts
Location -
Joined 2004-08-23
cheers alec- I thing the flavour of the week seems to be nifty tools!