home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / utility / diffx.zip / KURTS.TXT < prev    next >
Text File  |  1992-04-28  |  6KB  |  136 lines

  1. I have been frustrated a number of times by Windows apps that install files into the
  2. Windows and Windows\SYSTEM directories, and that modify system files such as 
  3. AUTOEXEC.BAT, CONFIG.SYS, WIN.INI and SYSTEM.INI.  Most products are not polite 
  4. enough to include documentation on what these changes are, making it difficult for
  5. me to identify files that are lying around in my directories, and making it almost
  6. impossible to ensure that I can completely delete an application from my system.
  7.  
  8. I have often wished that there was a program that would take a "snapshot" of my system
  9. prior to installing a product, them compare the system to the snapshot after the 
  10. install to show me what had happened.  It eventually ocurred to me that the pieces of
  11. this "dream program" probably already existed.  A few minutes browsing a CompuServe
  12. forum, half an hour downloading programs and trying them out, and a few more minutes
  13. building some custom batch files, and I had my snapshot/compare system working.
  14. Here's what I did.
  15.  
  16. The programs I needed were in the IBMSYS forum, in Library 6: File Utilities.  After
  17. downloading about a half-dozen likely programs and trying them out, I settled on two
  18. of them:
  19.  
  20.     1) DIFF.ZIP - this program can make a reference file containing the contents
  21.        of a directory, and later compare the file to the actual directory and
  22.        produce a second file containing the differences.
  23.  
  24.     2) HDIFF.ARC - This program compares two files and produces a third file
  25.        containing the differences.
  26.  
  27. Once I was familiar with the programs, I set up two batch files.  The first, called
  28. SNAPSHOT.BAT, makes copies of the critical system files (AUTOEXEC.BAT, CONFIG.SYS,
  29. WIN.INI and SYSTEM.INI), and makes reference files of my Windows and Windows\SYSTEM
  30. directories.  Here it is:
  31.  
  32.     echo Creating Snapshot of System Files
  33.     copy c:\autoexec.bat autobat.s%1
  34.     copy c:\config.sys cfgsys.s%1 
  35.     copy c:\win31\win.ini winini.s%1
  36.     copy c:\win31\system.ini sysini.s%1
  37.     diff /m-windir.s%1 c:\win31\
  38.     diff /m-sysdir.s%1 c:\win31\system\
  39.     echo System Snapshot Complete
  40.  
  41. The second batch file, called COMPARE.BAT, compares the files to the reference copies
  42. and produces the difference files.  Here it is:
  43.  
  44.     echo Comparing Current Configuration To System Snapshot
  45.     hdiff autobat.s%1 c:\autoexec.bat autobat.d%1
  46.     hdiff cfgsys.s%1 c:\config.sys cfgsys.d%1
  47.     hdiff winini.s%1 c:\win31\win.ini winini.d%1
  48.     hdiff sysini.s%1 c:\win31\system.ini sysini.d%1
  49.     diff /c-windir.s%1 /d-windir.d%1 c:\win31\ 
  50.     diff /c-sysdir.s%1 /d-sysdir.d%1 c:\win31\system\
  51.     echo System Comparison Complete
  52.  
  53. The commands accept a parameter consisting of two digits to identify the version of
  54. the snapshot.  So if I enter "SNAPSHOT 01", the reference files would have file types
  55. of "S01".  If I then install a product and enter "COMPARE 01", I would produce
  56. difference files with file type "D01".
  57.  
  58. I tried this system out when I installed Carbon Copy for Windows, since I figured that
  59. this product would make a few changes to the Windows files.  Here are the difference
  60. files the system produced:
  61.  
  62. AUTOBAT.D01
  63.     (Empty.  Carbon Copy didn't change my AUTOEXEC.BAT.  Nice program.)
  64.  
  65. CFGSYS.D01
  66.     (Also empty.  Still a nice program.)
  67.  
  68. WININI.D01
  69. 0025- Wallpaper=C:\WIN31\MARBLE.BMP
  70. 0025+ Wallpaper=C:\WIN31\TARTAN.BMP
  71. 0301- SystemExit=C:\WIN31\DING.WAV,Windows Exit
  72. 0302- SystemStart=C:\WIN31\TADA.WAV,Windows Start
  73. 0301+ SystemExit=C:\WIN31\TADA.WAV,Windows Exit
  74. 0302+ SystemStart=C:\WIN31\SW1USEF.WAV,Windows Start
  75.     (These changes are all from my wallpaper and sound randomizers.  Carbon
  76.      Copy is still being well-behaved.)
  77.  
  78. SYSINI.D01
  79. 0012- mouse.drv=lmouse.drv
  80. 0012+ mouse.drv=CCMOUSE.DRV
  81. 0017- keyboard.drv=keyboard.drv
  82. 0017+ keyboard.drv=CCKBD.DRV
  83. 0062- keyboard=*vkd
  84. 0062+ keyboard=CCVKD.386
  85. 0105+ COM1IRQ=4
  86. 0106+ COM1Base=3f8
  87. 0107+ COM2IRQ=3
  88. 0108+ COM2Base=2f8
  89. 0109+ COM3IRQ=4
  90. 0110+ COM3Base=3e8
  91. 0111+ COM4IRQ=3
  92. 0112+ COM4Base=2e8
  93.     (Uh-Oh... big changes here.  Carbon Copy has "stolen" a few of the Windows
  94.      drivers, and added some additional statements for COM ports.)
  95.  
  96. WINDIR.D01
  97. WIN     .INI       6786  04-23-1992   8:41:50  Size  Time  
  98. ANTSW   .INI       3225  04-23-1992   8:41:44  Time  
  99. MICROMAN.PRF        435  04-23-1992   8:42:18  Time  
  100. APPLICAT.QAG       4737  04-23-1992   8:42:16  Time  
  101. NORTONDE.QAG       3117  04-23-1992   8:42:16  Time  
  102. DONTWORK.QAG        222  04-23-1992   8:42:16  Time  
  103. DEVELOP .QAG        597  04-23-1992   8:42:16  Time  
  104. ONLINE  .QAG        846  04-23-1992   8:42:18  Time  
  105. STARTUP .QAG         86  04-23-1992   8:42:18  Time  
  106. ACCESSO0.QAG       1300  04-23-1992   8:42:18  Time  
  107. MAIN0   .QAG       1130  04-23-1992   8:42:18  Time  
  108. TEMP             <DIR>   04-23-1992   8:34:32  Added
  109. CCW     .INI        506  04-23-1992   8:40:26  Added
  110. CCWOLDAP.MOD       3472  11-15-1991   1:00:00  Added
  111. WKEYBOAR.DLL       7568  03-10-1992   3:10:00  Added
  112. WMOUSE  .DLL      11984  09-11-1991  10:27:22  Added
  113. SYSTEM  .INI       2903  04-23-1992   8:39:40  Size  Date  Time  
  114. SYSTEM  .CCW       2800  04-21-1992   7:56:00  Added
  115.     (Looks like Carbon Copy has added a few files.  It also looks like it
  116.      has decided that I really need a TEMP subdirectory in my Windows
  117.      directory!)
  118.  
  119. SYSDIR.D01
  120. HOSTRC  .DLL      13408  11-15-1991   1:00:00  Added
  121. CCMOUSE .DRV       2720  11-15-1991   1:00:00  Added
  122. CCKBD   .DRV       2496  11-15-1991   1:00:00  Added
  123. CCVKD   .386      12758  11-15-1991   1:00:00  Added
  124.     (Carbon Copy has placed some files in my Windows\SYSTEM directory as well)
  125.  
  126. The Carbon Copy for Windows documentation actually does provide some specific 
  127. information about the changes its SETUP program makes to the SYSTEM.INI file.
  128. Very few products are this considerate.  However, with some off-the-shelf software
  129. and a couple of batch files, you can be more confident of the changes that any
  130. product makes to your system.  These batch files can also easily be modified to 
  131. check the changes made to other directories, say when installing a new version of
  132. a product (did it leave all my configuration files alone?).
  133.  
  134. Check these programs out, and if you find them useful don't forget to register
  135. your Shareware products!
  136.                     Kurt Schumacher