comparing files

B

BrainDed

Here's a good one...

I've got two drives. One is the primary and the other is a backup. How would
I write a script to compare the contents of the two drives and delete the
files from the backup that have been deleted from the primary?

Thanks
 
O

Olaf Engelke [MVP]

Hi,
BrainDed said:
I've got two drives. One is the primary and the other is a backup.
How would I write a script to compare the contents of the two drives
and delete the files from the backup that have been deleted from the
primary?
create a backup script using Robocopy from resource kit with the /purge
option.
Best greetings from Germany
Olaf.
 
T

Torgeir Bakken \(MVP\)

BrainDed said:
Thanks. Looks good but will it work with NT 4.0?
Hi

Should work OK on Win2k and WinNT4 as well, from the note part in rktools.chm:

<quote>
This version of RoboCopy was developed and tested under Microsoft Windows XP.
The recommended minimum operating system platform for this version of RoboCopy
is, therefore, Microsoft Windows XP or Microsoft Windows Server 2003.

RoboCopy uses only standard, publicly documented Win32 application programming
interfaces (APIs)s throughout. For example, the program uses CopyFileEx() to
copy files, and FindFirstFile() and FindNextFile() to read directories. In
theory, RoboCopy should run on any operating system that supports these APIs,
such as Windows NT version 4.0 and Windows 2000. However, if you run this
version of RoboCopy on Windows NT version 4.0 or Windows 2000, be aware that
only limited testing has been performed on these platforms. The theoretical
performance of RoboCopy might differ from practical results.

Because RoboCopy uses the CopyFileEx() Win32 API, it cannot run on Windows NT
3.1, Windows NT 3.5x, Windows 95, Windows 98, or Windows Millennium Edition.
</quote>
 
O

Olaf Engelke [MVP]

BrainDed said:
Thanks. Looks good but will it work with NT 4.0?
yes - it's also part of the NR Resourcekit.
Best greetings from Germany
Olaf.
 
R

Ray McCormick

Alternatively use Xxcopy. This is extremely versatile and free
for single computer use.

Ray
 
T

Torgeir Bakken \(MVP\)

Olaf said:
yes - it's also part of the NR Resourcekit.

only that the version in the Win2k3 RK is a newer version (see my
other post for a compatibility note).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top