XCOPY

  • Thread starter Thread starter Leon
  • Start date Start date
L

Leon

Hi Group
See if this is right group?

I want to compare folder1 to folder2 and find new files.
All new files are copuied to folder3

how do I do that?

Cheers
 
Leon said:
Hi Group
See if this is right group?

I want to compare folder1 to folder2 and find new files.
All new files are copuied to folder3

how do I do that?

Cheers

I don't think Xcopy can do that for you. If you're willing to do a
little studying though, a program called XXCopy.exe can do it easily but
it takes a little study to learn to use everything in it, so start with
only what you need to accomplish. There are something like 700 switches
& combos to it IIRC<g>. But, it's powerful to the extreme. I use it for
a lot of housekeeping things and even to do my quickie backups I don't
want to bother waiting for my imaging prog to come up. Lightning fast,
works perfectly in batch files, very versatile.
xxcopy.com. Free and pay-for both.

HTH,

Twayne
 
Leon said:
Hi Group
See if this is right group?

I want to compare folder1 to folder2 and find new files.
All new files are copuied to folder3

how do I do that?

Cheers

When you say "new files", which do you mean:
- Files that exist in folder1 but not in folder2?
- Files that exist in folder2 but not in folder1?
- Files in folder1 that have a more recent date stamp than their equivalents
in folder2?
- Files in folder2 that have a more recent date stamp than their equivalents
in folder1?
All of the above can be done in batch files one way or another but you need
to be really clear what you want.
 
In Pegasus typed on Tue, 10 Mar 2009 19:38:18 +0100:
When you say "new files", which do you mean:
- Files that exist in folder1 but not in folder2?
- Files that exist in folder2 but not in folder1?
- Files in folder1 that have a more recent date stamp than their
equivalents in folder2?
- Files in folder2 that have a more recent date stamp than their
equivalents in folder1?
All of the above can be done in batch files one way or another but
you need to be really clear what you want.

SyncBack (free version) will do this if you think of doing it just a bit
differently. As the logic would work like this.

1) Compare folder 1 with folder 3, copy only newer files to folder 3.

2) Compare folder 2 with folder 3, copy only newer files to folder 3.

SyncBack
http://www.2brightsparks.com/freeware/freeware-hub.html

--
Bill
2 Gateway MX6124 - Windows XP SP2
3 Asus EEE PC 701G4 ~ 2GB RAM ~ 16GB-SDHC
2 Asus EEE PC 702G8 ~ 1GB RAM ~ 16GB-SDHC
Windows XP SP2 ~ Xandros Linux - Puppy - Ubuntu
 
InPegasus typed on Tue, 10 Mar 2009 19:38:18 +0100:







SyncBack (free version) will do this if you think of doing it just a bit
differently. As the logic would work like this.

1) Compare folder 1 with folder 3, copy only newer files to folder 3.

2) Compare folder 2 with folder 3, copy only newer files to folder 3.

SyncBackhttp://www.2brightsparks.com/freeware/freeware-hub.html

--
Bill
2 Gateway MX6124 - Windows XP SP2
3 Asus EEE PC 701G4 ~ 2GB RAM ~ 16GB-SDHC
2 Asus EEE PC 702G8 ~ 1GB RAM ~ 16GB-SDHC
Windows XP SP2 ~ Xandros Linux - Puppy - Ubuntu- Hide quoted text -

- Show quoted text -

I used notepad and created a file called CtoF.bat. You could modify
the technique and accomplish similar. From memory:

echo off
verify on
xcopy /s /h /d folder1\*.* folder3\*.*
xcopy /s /h /d folder2\*.* folder3\*.*



This will copy any new, not existing before, file.

It will also copy any newer version

it will also copy subdirectories

In WinXP, the window disappears afterwards and you have to watch
closely, or else add to the batch file so it creates a text log of
what happened.

I use a bunch of these batch files and icons on the DeskTop to run
them to keep my memory stick and all five systems up to date.

Robert
 
I used notepad and created a file called CtoF.bat.  You could modify
the technique and accomplish similar. From memory:

echo off
verify on
xcopy /s /h  /d   folder1\*.*  folder3\*.*
xcopy /s /h  /d   folder2\*.*  folder3\*.*

This will copy any new, not existing before, file.

It will also copy any newer version

it will also copy subdirectories

In WinXP, the window disappears afterwards and you have to watch
closely, or else add to the batch file so it creates a text log of
what happened.

I use a bunch of these batch files and icons on the DeskTop to run
them to keep my memory stick and all five systems up to date.

Robert- Skjul tekst i anførselstegn -

- Vis tekst i anførselstegn -

thanks all
I try it out
cheers
 
Back
Top