MS OS - Microsoft Forum to Usenet Gateway Header Right
Navbar Left Navbar Right


When using Xcopy in XP I do NOT wish to overwrite a file with an identical date/time stamp. If no date is given, the /D:m-d-y switch is claimed to 'only



Reply
Old 11-29-2007, 05:11 PM   #1
Kanga 85
Guest
 
Posts: n/a
Default xcopy identical file

When using Xcopy in XP I do NOT wish to overwrite a file with an identical
date/time stamp. If no date is given, the /D:m-d-y switch is claimed to
'only copy those files whose source time is newer than the destination time'.
However, I find that the old file is always overwritten by a new file when
the source time is identical. I don't want this.
How do I avoid it?
Thanks.
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-29-2007, 05:25 PM   #2
Pegasus \(MVP\)
Guest
 
Posts: n/a
Default Re: xcopy identical file


"Kanga 85" <Kanga85@discussions.microsoft.com> wrote in message
news:B3C97C21-6723-432A-8EDC-E94787404AA9@microsoft.com...
> When using Xcopy in XP I do NOT wish to overwrite a file with an identical
> date/time stamp. If no date is given, the /D:m-d-y switch is claimed to
> 'only copy those files whose source time is newer than the destination
> time'.
> However, I find that the old file is always overwritten by a new file
> when
> the source time is identical. I don't want this.
> How do I avoid it?
> Thanks.


Use the /d switch without any date:

xcopy /d /c /y /s "c:\My Files" "Q:\Backup Folder\"


 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 11-29-2007, 05:56 PM   #3
Kanga 85
Guest
 
Posts: n/a
Default Re: xcopy identical file



"Pegasus (MVP)" wrote:

>
> "Kanga 85" <Kanga85@discussions.microsoft.com> wrote in message
> news:B3C97C21-6723-432A-8EDC-E94787404AA9@microsoft.com...
> > When using Xcopy in XP I do NOT wish to overwrite a file with an identical
> > date/time stamp. If no date is given, the /D:m-d-y switch is claimed to
> > 'only copy those files whose source time is newer than the destination
> > time'.
> > However, I find that the old file is always overwritten by a new file
> > when
> > the source time is identical. I don't want this.
> > How do I avoid it?
> > Thanks.

>
> Use the /d switch without any date:
>
> xcopy /d /c /y /s "c:\My Files" "Q:\Backup Folder\"
>


I find that the /d switch with no date still copies identical files. A
real pain that I have struggled with for years
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-29-2007, 06:16 PM   #4
Pegasus \(MVP\)
Guest
 
Posts: n/a
Default Re: xcopy identical file


"Kanga 85" <Kanga85@discussions.microsoft.com> wrote in message
news:0189589D-41D8-4343-8BAD-008A828D8F11@microsoft.com...
>
>
> "Pegasus (MVP)" wrote:
>
>>
>> "Kanga 85" <Kanga85@discussions.microsoft.com> wrote in message
>> news:B3C97C21-6723-432A-8EDC-E94787404AA9@microsoft.com...
>> > When using Xcopy in XP I do NOT wish to overwrite a file with an
>> > identical
>> > date/time stamp. If no date is given, the /D:m-d-y switch is claimed
>> > to
>> > 'only copy those files whose source time is newer than the destination
>> > time'.
>> > However, I find that the old file is always overwritten by a new file
>> > when
>> > the source time is identical. I don't want this.
>> > How do I avoid it?
>> > Thanks.

>>
>> Use the /d switch without any date:
>>
>> xcopy /d /c /y /s "c:\My Files" "Q:\Backup Folder\"
>>

>
> I find that the /d switch with no date still copies identical files. A
> real pain that I have struggled with for years


I suspect that you are copying files from a medium whose file
system uses a date stamp granularity that differs from the one
available on NTFS partitions. You can get around the problem
by specifying the appropriate switch with xxcopy.exe or with
robocopy.exe. You can download robocopy from a Microsoft
site and xxcopy from a number of independent sites.


 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-29-2007, 07:33 PM   #5
Kanga 85
Guest
 
Posts: n/a
Default Re: xcopy identical file



"Pegasus (MVP)" wrote:

>
> "Kanga 85" <Kanga85@discussions.microsoft.com> wrote in message
> news:0189589D-41D8-4343-8BAD-008A828D8F11@microsoft.com...
> >
> >
> > "Pegasus (MVP)" wrote:
> >
> >>
> >> "Kanga 85" <Kanga85@discussions.microsoft.com> wrote in message
> >> news:B3C97C21-6723-432A-8EDC-E94787404AA9@microsoft.com...
> >> > When using Xcopy in XP I do NOT wish to overwrite a file with an
> >> > identical
> >> > date/time stamp. If no date is given, the /D:m-d-y switch is claimed
> >> > to
> >> > 'only copy those files whose source time is newer than the destination
> >> > time'.
> >> > However, I find that the old file is always overwritten by a new file
> >> > when
> >> > the source time is identical. I don't want this.
> >> > How do I avoid it?
> >> > Thanks.
> >>
> >> Use the /d switch without any date:
> >>
> >> xcopy /d /c /y /s "c:\My Files" "Q:\Backup Folder\"
> >>

> >
> > I find that the /d switch with no date still copies identical files. A
> > real pain that I have struggled with for years

>
> I suspect that you are copying files from a medium whose file
> system uses a date stamp granularity that differs from the one
> available on NTFS partitions. You can get around the problem
> by specifying the appropriate switch with xxcopy.exe or with
> robocopy.exe. You can download robocopy from a Microsoft
> site and xxcopy from a number of independent sites.
>


Thanks Pegasus, that could be the problem. I'll explore further with
xxcopy and with robocopy.

Another question tho, which might solve my problem. Using Xcopy, copying
from computer A to computer B via a flashdrive, can I find a switch to turn
off the archival bit of the file I have just copied to Computer B? I don't
want to affect all the files in the directory on computer B, just the file
I've copied. I know that /M turns off the archival bit of the copied file
on Computer A, but how do I do the same thing to the written file on computer
B?

Thanks.
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-30-2007, 01:38 AM   #6
Pegasus \(MVP\)
Guest
 
Posts: n/a
Default Re: xcopy identical file


"Kanga 85" <Kanga85@discussions.microsoft.com> wrote in message
news:60A5F2BC-2B14-42A4-9672-7EBA74018F43@microsoft.com...
>
>
> "Pegasus (MVP)" wrote:
>
>>
>> "Kanga 85" <Kanga85@discussions.microsoft.com> wrote in message
>> news:0189589D-41D8-4343-8BAD-008A828D8F11@microsoft.com...
>> >
>> >
>> > "Pegasus (MVP)" wrote:
>> >
>> >>
>> >> "Kanga 85" <Kanga85@discussions.microsoft.com> wrote in message
>> >> news:B3C97C21-6723-432A-8EDC-E94787404AA9@microsoft.com...
>> >> > When using Xcopy in XP I do NOT wish to overwrite a file with an
>> >> > identical
>> >> > date/time stamp. If no date is given, the /D:m-d-y switch is
>> >> > claimed
>> >> > to
>> >> > 'only copy those files whose source time is newer than the
>> >> > destination
>> >> > time'.
>> >> > However, I find that the old file is always overwritten by a new
>> >> > file
>> >> > when
>> >> > the source time is identical. I don't want this.
>> >> > How do I avoid it?
>> >> > Thanks.
>> >>
>> >> Use the /d switch without any date:
>> >>
>> >> xcopy /d /c /y /s "c:\My Files" "Q:\Backup Folder\"
>> >>
>> >
>> > I find that the /d switch with no date still copies identical files.
>> > A
>> > real pain that I have struggled with for years

>>
>> I suspect that you are copying files from a medium whose file
>> system uses a date stamp granularity that differs from the one
>> available on NTFS partitions. You can get around the problem
>> by specifying the appropriate switch with xxcopy.exe or with
>> robocopy.exe. You can download robocopy from a Microsoft
>> site and xxcopy from a number of independent sites.
>>

>
> Thanks Pegasus, that could be the problem. I'll explore further with
> xxcopy and with robocopy.
>
> Another question tho, which might solve my problem. Using Xcopy, copying
> from computer A to computer B via a flashdrive, can I find a switch to
> turn
> off the archival bit of the file I have just copied to Computer B? I
> don't
> want to affect all the files in the directory on computer B, just the file
> I've copied. I know that /M turns off the archival bit of the copied
> file
> on Computer A, but how do I do the same thing to the written file on
> computer
> B?
>
> Thanks.


You should use the /d or the /m switch but not both. If you use the /d
switch then the /k switch may be what you're after. Have a good look
at Help for xcopy and xxcopy (or robocopy).


 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-30-2007, 03:00 AM   #7
Kanga 85
Guest
 
Posts: n/a
Default Re: xcopy identical file



"Pegasus (MVP)" wrote:

>
> "Kanga 85" <Kanga85@discussions.microsoft.com> wrote in message
> news:60A5F2BC-2B14-42A4-9672-7EBA74018F43@microsoft.com...
> >
> >
> > "Pegasus (MVP)" wrote:
> >
> >>
> >> "Kanga 85" <Kanga85@discussions.microsoft.com> wrote in message
> >> news:0189589D-41D8-4343-8BAD-008A828D8F11@microsoft.com...
> >> >
> >> >
> >> > "Pegasus (MVP)" wrote:
> >> >
> >> >>
> >> >> "Kanga 85" <Kanga85@discussions.microsoft.com> wrote in message
> >> >> news:B3C97C21-6723-432A-8EDC-E94787404AA9@microsoft.com...
> >> >> > When using Xcopy in XP I do NOT wish to overwrite a file with an
> >> >> > identical
> >> >> > date/time stamp. If no date is given, the /D:m-d-y switch is
> >> >> > claimed
> >> >> > to
> >> >> > 'only copy those files whose source time is newer than the
> >> >> > destination
> >> >> > time'.
> >> >> > However, I find that the old file is always overwritten by a new
> >> >> > file
> >> >> > when
> >> >> > the source time is identical. I don't want this.
> >> >> > How do I avoid it?
> >> >> > Thanks.
> >> >>
> >> >> Use the /d switch without any date:
> >> >>
> >> >> xcopy /d /c /y /s "c:\My Files" "Q:\Backup Folder\"
> >> >>
> >> >
> >> > I find that the /d switch with no date still copies identical files.
> >> > A
> >> > real pain that I have struggled with for years
> >>
> >> I suspect that you are copying files from a medium whose file
> >> system uses a date stamp granularity that differs from the one
> >> available on NTFS partitions. You can get around the problem
> >> by specifying the appropriate switch with xxcopy.exe or with
> >> robocopy.exe. You can download robocopy from a Microsoft
> >> site and xxcopy from a number of independent sites.
> >>

> >
> > Thanks Pegasus, that could be the problem. I'll explore further with
> > xxcopy and with robocopy.
> >
> > Another question tho, which might solve my problem. Using Xcopy, copying
> > from computer A to computer B via a flashdrive, can I find a switch to
> > turn
> > off the archival bit of the file I have just copied to Computer B? I
> > don't
> > want to affect all the files in the directory on computer B, just the file
> > I've copied. I know that /M turns off the archival bit of the copied
> > file
> > on Computer A, but how do I do the same thing to the written file on
> > computer
> > B?
> >
> > Thanks.

>
> You should use the /d or the /m switch but not both. If you use the /d
> switch then the /k switch may be what you're after. Have a good look
> at Help for xcopy and xxcopy (or robocopy).
>

Thanks Pegasus,
My situation appears to be too complex for Xcopy and I will explore Xxcopy.
I have five computers in different locations. I copy any changed files
(archival bit set) in defined directories to a flash drive. When I boot up
the next computer I run my program as the first thing to download any 'newer'
files. I then backup changed files back onto my flashdrive when I've
finished. When the flash drive gets full I empty it after making sure that
all computers have first had a peep at it. This way five computers have the
same working files on them. Xcopy does this reasonably well, but some files
get copied to computer A, back to the flashdrive, onto computer B, back to
the flash drive, etc, without ever having been altered, and this is both
inelegant and slowing of computer time.
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple identical copies of Applications JoeM Windows XP 6 10-26-2007 11:51 AM


All times are GMT -5. The time now is 12:22 PM.


Powered by vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Skin designed by CompletevB
Copyright © 2005-2008 Robert Schwarz, Sr. - All rights reserved - MS OS is an independent web site and is not affiliated with Microsoft Corporation.