PC Review


Reply
Thread Tools Rate Thread

How do I copy new files and modified files having new time/date?

 
 
Don J
Guest
Posts: n/a
 
      15th Apr 2007
I would like to copy all files having a specified extension from a set of
source directories to a set of target directories having the same names as
the source directories, where the transferred files don't already exist with
the same name and time/date in the corresponding target directory. If a
file does exist in the same named target directory having the same name as
the file in the source directory along with the same time/date then the
transfer is aborted. If a file exists with the same name but a different
time/date, then the preexisting file in the target directory should be
overwritten, with the time/date of the file in the target directory being
replaced by that of the transferred file.

Don J

----------------------------------------------------------------------------------


 
Reply With Quote
 
 
 
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      15th Apr 2007

"Don J" <(E-Mail Removed)> wrote in message
news:GdKdne-(E-Mail Removed)...
> I would like to copy all files having a specified extension from a set of
> source directories to a set of target directories having the same names as
> the source directories, where the transferred files don't already exist

with
> the same name and time/date in the corresponding target directory. If a
> file does exist in the same named target directory having the same name as
> the file in the source directory along with the same time/date then the
> transfer is aborted. If a file exists with the same name but a different
> time/date, then the preexisting file in the target directory should be
> overwritten, with the time/date of the file in the target directory being
> replaced by that of the transferred file.
>
> Don J
>
> --------------------------------------------------------------------------

--------

You write "If a file exists with the same name but a ***different***
time/date, then the preexisting file in the target directory should be
overwritten, with the time/date of the file in the target directory being
replaced by that of the transferred file."

I don't think you mean what you write. You probably mean this:
"If a file exists with the same name but an ***older*** time/date,
then the preexisting file in the target directory should be overwritten,
with the time/date of the file in the target directory being replaced
by that of the transferred file."

The short answer is: Put an appropriate xcopy.exe command into
a batch file and use the /d switch.


 
Reply With Quote
 
over@my.place
Guest
Posts: n/a
 
      15th Apr 2007
"Pegasus \(MVP\)" <(E-Mail Removed)> wrote in
news:(E-Mail Removed):

> "Don J" <(E-Mail Removed)> wrote in message
> news:GdKdne-(E-Mail Removed)...
>> I would like to copy all files having a specified extension from a
>> set of source directories to a set of target directories having the
>> same names as the source directories, where the transferred files
>> don't already exist

> with
>> the same name and time/date in the corresponding target directory.
>> If a file does exist in the same named target directory having the
>> same name as the file in the source directory along with the same
>> time/date then the transfer is aborted. If a file exists with the
>> same name but a different time/date, then the preexisting file in the
>> target directory should be overwritten, with the time/date of the
>> file in the target directory being replaced by that of the
>> transferred file.
>>
>> Don J
>>
>> ----------------------------------------------------------------------
>> ----

> --------
>
> You write "If a file exists with the same name but a ***different***
> time/date, then the preexisting file in the target directory should be
> overwritten, with the time/date of the file in the target directory
> being replaced by that of the transferred file."
>
> I don't think you mean what you write. You probably mean this:
> "If a file exists with the same name but an ***older*** time/date,
> then the preexisting file in the target directory should be
> overwritten, with the time/date of the file in the target directory
> being replaced by that of the transferred file."
>
> The short answer is: Put an appropriate xcopy.exe command into
> a batch file and use the /d switch.
>
>


You may also want to look at the replace.exe command

Or for even more options, download robocopy or synctoy from Microsoft
or xxcopy from www.xxcopy.com (plug those program names into
MSN/Google/whatever search engine you like)
 
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
how to copy recently modified files mcseramana Webmaster / Programming 0 1st Aug 2007 02:13 PM
Update Access Table with filename, modified file date/time and values contained in these flat files Pierre Maricq Microsoft Access 1 9th Jun 2005 06:51 PM
How to copy multiple modified files Gene Windows XP Help 1 15th Jan 2005 02:41 AM
how to search for files by modified date AND time? =?Utf-8?B?RG9kZ3lSb2RnZQ==?= Windows XP General 2 20th Oct 2004 09:45 AM
Windows Explorer - Copy only modified files - Jeremiahb Windows XP General 0 5th Aug 2003 02:15 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:38 AM.