How can i defrag the registry ???????????

Posted on 2006-05-01
Last Modified: 2010-05-18
Hi All

i want to take a backup of registry, but not with command because  i also want to defrag the registry , but when we considered the registry files they can't allow any manipulation on them , means you can't access them nor delete , nor cut ,copy etc so how can i defrag or take the backup of these registry files.

how can i  implement programmaticaly in MFC , i dont want the tool to defrag the registry , i just want the idea how i will
take the backup & defragmentation of these registry files.

if iam not wrong The following Registry files are stored in %SystemRoot%\System32\Config\:

    * Sam
    * Security
    * Software
    * System
    * Default
    * Userdiff
    * NTUSER.dat

Thanks & Regards
Question by:davinder101
    LVL 1

    Accepted Solution

    yes you are right, the registry files are stored in that directory.

    if you have system restore enabled, you can also access backed up versions of these files in the system volume imformation folder, ie:

    C:\System Volume Information\_restore{D86480E3-73EF-47BC-A0EB-A81BE6EE3ED8}\RP1\Snapshot

    to gain access to the system volume information folder, you will need to start the computer in safe mode (F8 on boot) and give yourself access to the folder (right-click, properties, security).

    once you have access to the system volume information folder, create a restore point, then copy the registry backups from there.

    this would be the easiest (in my opinion) way of going about it.

    as for defragging the registry, I think Norton Utilities has an option for this, in fact I think Tune-up Utilities also has this feature.

    let me know how you go.
    LVL 3

    Assisted Solution

    This program here:

    will let you defragment locked files after a reboot.

    As for programattically doing it, I'm not sure.  Perhaps you can get a registry key enumerator (my memory is a bit hazy on this), and then go through the entire registry, copying it.

    If you want to access the files directly on disk, you'll need to either have your process request permission to access them, or do it on a reboot before windows is completely started, as PageDefrag does above.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Suggested Solutions

    Title # Comments Views Activity
    EvenOdd challenge 10 67
    fix34  challenge 9 70
    firstChar challenge 13 53
    python sqlite question 11 17
    Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
    If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now