home *** CD-ROM | disk | FTP | other *** search
/ Freelog 7 / Freelog007.iso / BAS / Système / RegChk / regchk.doc < prev    next >
Text File  |  1997-07-19  |  3KB  |  46 lines

  1. Written by:  Ron Thompson
  2. Email:       rdthom@netcom.com
  3. Language:    vb4
  4. System:      Win95
  5. Date:        July 19, 1997
  6. Version      1.0.1
  7. Status:      freeware
  8. Copyright:   Ron Thompson, 1997
  9.  
  10.  
  11. Why I wrote this
  12. --- - ----- ----
  13. RegChk was written so I could find the 'junk' in the registry. After installing and uninstalling several hundred programs, I knew that there must be lots of stuff in the registry that pointed to files that moved or were no longer on the harddrive.
  14.  
  15. There are many utilities, many articles written, and many commercial products dedicated to removing a specific app from the registry. I could find nothing that took the registry point-of-view to tell you what was moved or gone from the harddrive.
  16.  
  17. Now something does.
  18.  
  19.  
  20. What does it do?
  21. ---- ---- -- ---
  22. RegChk scans the registry for files and directories and checks to see if they exist. RegChk does NOTHING to the registry. It simply shells "regedit.exe /e regchk.txt" which exports everything from the registry to a text file. Even the text file is treated as read-only (now you have that all-important registry backup you've been meaning to do). A separate report is generated for each drive.
  23.  
  24.  
  25. What info do I get?
  26. ---- ---- -- - ----
  27. Each missing file is reported in regchk_*.out where * is the drive letter you checked.  Each reported file has 3 lines of data similar to the following:
  28.  
  29. D:\COREL\OFFICE7\QUATTRO7\QPW.EXE
  30. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.WB1\shell\open\command]
  31. @="D:\\COREL\\OFFICE7\\QUATTRO7\\QPW.EXE %1"
  32.  
  33. Line one is the actual filename or directory name that RegChk checked for existence.  Failure to find it is what caused this report entry to be generated. It may find some 'funny' things, because filename parsing from the registry is not an exact science. I'm constantly adding filters to eliminate the 'funny' ones from the scan.
  34.  
  35. Line two is the key I found just before the file or directory. It MAY NOT BE THE EXACT KEY, but will be *very* close to the problem.
  36.  
  37. Line three is the raw data in which I found the filename. It's for reference in case the filename looks 'funny'
  38.  
  39.  
  40. What do I do with it?
  41. ---- -- - -- ---- ---
  42. You can use this information to edit your registry. THIS CAN BE A VERY DANGEROUS THING TO DO. If you're not comfortable in the registry, stay out, and just forget you ever saw this program. MISTAKES IN REGISTRY EDITS CAN EASILY DESTROY ALL THE DATA ON YOUR SYSTEM, AND PERHAPS ON OTHER SYSTEMS AS WELL. YOU HAVE BEEN WARNED.
  43.  
  44. That said, use the information to delete data and keys for files and directories that no longer exist on your system. Use your own discretion in deleting references.
  45.  
  46.