home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / ibm / pc / misc / 11710 < prev    next >
Encoding:
Internet Message Format  |  1992-08-20  |  2.4 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!ucbvax!cbe.qut.edu.au!MARK
  2. From: MARK@cbe.qut.edu.au (Mark Cramer)
  3. Newsgroups: comp.sys.ibm.pc.misc
  4. Subject: Compare utility
  5. Message-ID: <MAILQUEUE-101.920821151841.448@cbe.qut.edu.au>
  6. Date: 21 Aug 92 05:30:14 GMT
  7. Sender: daemon@ucbvax.BERKELEY.EDU
  8. Lines: 54
  9. X-Unparsable-Date: 21 Aug 92 15:18:41 GMT+1000
  10.  
  11. >I am looking for a simple program which can compare files in a way
  12. >slightly more powerful than WSUPDATE (from Novell) and COMP (from
  13. >DOS).
  14. >
  15. >Basically I have a set of files that I want to keep updated on my
  16. >client machines.  If the files need to be updated I want to copy the
  17. >new version and reboot.
  18. >
  19. >WSUPDATE searches the entire client drive to find outdated copies,
  20. >when all I want to search is a specific directory and a batch file
  21. >with COMP is my last resort.
  22.  
  23. I can think of a couple of ways to do this, if the files are in the
  24. same directories for each client, put the stuff in a zip file and use
  25. "PKUNZIP -dno <zipname>", I've used this approach before & combined it
  26. with a program called Earlier to check if the zipdate is later than the
  27. last time the update program was run.  Or alternatively use the Dos 5.0
  28. Replace command, put the files in the correct directory structure and use
  29. Replace SourcePath\*.* C:\ /S /U, though I have found Replace does not
  30. work reliably with a large (>200) files.  If you want I'll send you a
  31. UuEncoded version of Earlier (& reboot if you want it).  I imagine there
  32. are similar switches in Arj, Zoo and Lharc if you prefer these.
  33.  
  34. Update.bat
  35.  
  36. @Echo off
  37. Earlier Client.Zip C:\Update.Dte
  38. If Not ErrorLevel 2 Goto NoUpdate
  39. C:
  40. PkUnzip -Dno F:Client.Zip
  41. Echo Date>UpDate.Dte
  42. Reboot
  43. :NoUpdate
  44.  
  45. Docs for Earlier
  46.  
  47. Usage:   Earlier file1 file2
  48.  
  49. Returns Errorlevel of:
  50.             0 - file1 earlier than file2
  51.             1 - file1 same date as file2
  52.             2 - file1 later than file2
  53.           255 - error, probably file not found
  54.  
  55.  
  56.             +-----------------------------------------------+
  57.             | Mark Cramer.                           /\_|\  |
  58.             | Operations Manager,     CBE Section   / QUT>\ |
  59.             | Queensland University of Technology  (  __  | |
  60.             | Australia.      M.Cramer@qut.edu.au   --  \/  |
  61.             | Ph. 07 8642073.     Fax 07 8641525.        v  |
  62.             +-----------------------------------------------+
  63.  
  64.  
  65.