PC Review


Reply
Thread Tools Rate Thread

copy/xcopy always change modified attribute of file?

 
 
djc
Guest
Posts: n/a
 
      9th Jun 2004
when using copy or xcopy and specifying to overwrite the file if it already
exists (/y option) should the modified date attribute of the destination
file always change to the current date/time? In other words, do these
commands do any kind of precopy comparing of the files and if they are the
exact same does the command NOT copy over the file? Thats looks like what is
happening to me while I'm testing something but I want to confirm.

any info is appreciated. Thanks.


 
Reply With Quote
 
 
 
 
Matthias Tacke
Guest
Posts: n/a
 
      9th Jun 2004
"djc" wrote:

>when using copy or xcopy and specifying to overwrite the file if it already
>exists (/y option) should the modified date attribute of the destination
>file always change to the current date/time? In other words, do these
>commands do any kind of precopy comparing of the files and if they are the
>exact same does the command NOT copy over the file? Thats looks like what is
>happening to me while I'm testing something but I want to confirm.
>
>any info is appreciated. Thanks.
>

Look up (in alphabetical order):

copy /?
replace /?
xcopy /?

If you want better control over precopy actions have a look at
www.xxcopy.com

HTH
--
Greetings
Matthias________________________________________
For help on nt commands enter in a cmd window:
W2K>HH windows.chm::ntcmds.htm XP>HH ntcmds.chm
 
Reply With Quote
 
Gary Smith
Guest
Posts: n/a
 
      11th Jun 2004
djc <(E-Mail Removed)> wrote:
> when using copy or xcopy and specifying to overwrite the file if it already
> exists (/y option) should the modified date attribute of the destination
> file always change to the current date/time?


The date and time should change to match that of the source file, not the
current date and time.

> In other words, do these
> commands do any kind of precopy comparing of the files and if they are the
> exact same does the command NOT copy over the file? Thats looks like what is
> happening to me while I'm testing something but I want to confirm.


Copy does not do any checking. Xcopy will check if you request that usinf
the /d option.

--
Gary L. Smith (E-Mail Removed)
Columbus, Ohio
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
is there a dos command that works like xcopy but compares file sizesor last modified dates? Mike S Windows XP General 8 6th Sep 2010 07:10 PM
XCOPY FILE TO COPY MY DOCUMENTS FOLDER hamy Windows XP Basics 3 5th Mar 2006 05:47 PM
XCOPY Script to Copy File to Network Connection Karl Burrows Microsoft Windows 2000 5 31st Dec 2003 01:03 AM
XCOPY Script to Copy File to Network Connection Karl Burrows Microsoft Windows 2000 RAS Routing 5 31st Dec 2003 01:03 AM
File attribute - date modified - went back one hour Andrew Windows XP General 0 27th Oct 2003 07:26 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:08 PM.