programming | html tutorial | articles

up ]

How To Thin Your Registry

Registry plays an important role, in your windows environment, especially in your Window loading processs. Larger the registry file, longer time required to load your Windows. The registry consist of two hidden files, user.dat (which have your user information) and system.dat (which have your computer hardware information). Damaging these two files will result in damaging your windows.

Overtime, your registry will became bigger, since you install and uninstall frequently, the uninstall program will not clear the prevously appended data. Therefore, using this technique decrease your windows startup time..

  • Make registry backup.
    To make registry backup, first, you have to copy the file into another safe location. For example, another directory in your harddisk. Enable the see all files in your windows explorer. How? Click see all files in your View settings.

  • Run Regedit.
    How?? Click Start->Run-> Type "regedit"->OK.

  • Export your registry.
    At file Menu, choose export, save exported file as COMPACT.REG, int the root directory, (i'm assuming that your root directory is "c".

  • Finished??
    Then exit to DOS, from DOS type the command below.

  • Go to windows directory
    type this. "c:\> cd \windows"

  • Change user.dat file attribute
    "c:\windows>attrib user.dat -h -r -s -a"
    Why?? because user.dat is hidden, and it is a readonly file. Therefore in order to change the registry, you need to make them writeable.

  • Change system.dat file attribute,
    "c:\windows> attrib system.dat -h -r -s -a"
    Why?? because system is also hidden, and it is a readonly file. Therefore to change the registry, you need to make them writeable.

  • Note down your registry file size.
    "c:\windows> dir *.dat"
    This is to compare your registry file after you do cleanup process.

  • Type this command run clean the registry
    "c:\windows> regedit /c c:\COMPACT.REG"
    Note: this process is a very long process, about 1 hour on a pentium 100Mhz, and it is also depend on your registry file size.

  • Compare
    After that compare your new registry file size with the noted down value.

 

What to do if you cannot load your windows!

  • Use your registry backup

 

c programming | html tutorial | articles | home
about me | links | search | guestbook | photo album