home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!ucbvax!cbe.qut.edu.au!MARK
- From: MARK@cbe.qut.edu.au (Mark Cramer)
- Newsgroups: comp.sys.ibm.pc.misc
- Subject: Compare utility
- Message-ID: <MAILQUEUE-101.920821151841.448@cbe.qut.edu.au>
- Date: 21 Aug 92 05:30:14 GMT
- Sender: daemon@ucbvax.BERKELEY.EDU
- Lines: 54
- X-Unparsable-Date: 21 Aug 92 15:18:41 GMT+1000
-
- >I am looking for a simple program which can compare files in a way
- >slightly more powerful than WSUPDATE (from Novell) and COMP (from
- >DOS).
- >
- >Basically I have a set of files that I want to keep updated on my
- >client machines. If the files need to be updated I want to copy the
- >new version and reboot.
- >
- >WSUPDATE searches the entire client drive to find outdated copies,
- >when all I want to search is a specific directory and a batch file
- >with COMP is my last resort.
-
- I can think of a couple of ways to do this, if the files are in the
- same directories for each client, put the stuff in a zip file and use
- "PKUNZIP -dno <zipname>", I've used this approach before & combined it
- with a program called Earlier to check if the zipdate is later than the
- last time the update program was run. Or alternatively use the Dos 5.0
- Replace command, put the files in the correct directory structure and use
- Replace SourcePath\*.* C:\ /S /U, though I have found Replace does not
- work reliably with a large (>200) files. If you want I'll send you a
- UuEncoded version of Earlier (& reboot if you want it). I imagine there
- are similar switches in Arj, Zoo and Lharc if you prefer these.
-
- Update.bat
-
- @Echo off
- Earlier Client.Zip C:\Update.Dte
- If Not ErrorLevel 2 Goto NoUpdate
- C:
- PkUnzip -Dno F:Client.Zip
- Echo Date>UpDate.Dte
- Reboot
- :NoUpdate
-
- Docs for Earlier
-
- Usage: Earlier file1 file2
-
- Returns Errorlevel of:
- 0 - file1 earlier than file2
- 1 - file1 same date as file2
- 2 - file1 later than file2
- 255 - error, probably file not found
-
-
- +-----------------------------------------------+
- | Mark Cramer. /\_|\ |
- | Operations Manager, CBE Section / QUT>\ |
- | Queensland University of Technology ( __ | |
- | Australia. M.Cramer@qut.edu.au -- \/ |
- | Ph. 07 8642073. Fax 07 8641525. v |
- +-----------------------------------------------+
-
-
-