MS-DOS Version:
Scanreg.exe [/backup] [/restore] ["/comment="] [/fix]
Scanreg.exe [backup] [/restore] ["/comment="] [/fix] [/opt]
Windows Version:
Scanregw.exe [/backup] ["/comment="] [/autoscan] [/scanonly] [filename]
The following table lists each command-line switch and its description:
Switch Description
----------------------------------------------------------------------
/backup Backs up the registry and related files without
displaying any prompts.
/restore Displays a list of available backup files, sorted
by the date and time the backup was created.
"/comment=" Enables you to add a descriptive comment to the
registry backup.
/fix Repairs any damaged portions of the registry, and
optimizes it by rebuilding it without unused space.
/autoscan Automatically scans the registry and backs it up
without displaying any prompts if there is no
backup for that date.
/scanonly Scans the registry and displays a message if any
errors are found. This switch does not back up the
registry.
filename Scans the registry file specified and displays a
message indicating whether or not any errors were
found. This switch does not back up the registry.
/opt The /opt command-line switch causes the
Registry Checker tool to optimize the
registry by removing unused space.
The Registry Scan Results dialog box appears only when you use the Scanregw.exe command without any command-line switches. If no registry errors are found when you run Scanregw.exe, you are prompted to create a backup copy of your current registry.
The "/comment=" switch can be used by itself or with the /backup switch. For example, you can type either of the following lines at a command prompt:
scanreg.exe "/comment=this is a registry backup"
scanreg.exe /backup "/comment=this is a registry backup"
The first command line starts the Registry Checker tool graphical user interface (GUI) and prompts you to create a registry backup. The second command line creates a backup copy of your registry and adds your comment without starting the Registry Checker tool GUI.
For additional information about the Registry Checker tool, please see the following articles in the Microsoft Knowledge Base:
201655 Error Message: You Have Restored a Good Registry
For additional information about how to use the Registry Checker tool, click Start, click Help, click the Index tab, type registry, and then double-click the "Registry Checker" topic.
I messed up the Windows registry. I should be able to restore it to a previous state because Windows keeps a backup in C:\Windows\System32\Config I think. There used to be a tool called Windows Registry Checker Tool (scanreg.exe) that would allow you to not only restore to a previous Windows registry state but also to take backup of the current one, by using one of the two commands below.
But I am using Windows Vista, and apparently they have removed this from Vista and newer versions of Windows. So how do I do something like this in Windows Vista? Is there an alternative to scanreg.exe? Is there another way to backup and restore Windows registry?
If you cannot boot into Windows normal mode nor into safe mode, you can try performing a startup repair, and at the same time restore the system to a restore point before the incident by using WinPE/WinRE.
I was listening to an online conference (in realplayer) when it suddenly died. I got a message something like realplay.exe has performed an illegal operation and will be shutdown. My computer promptly locked up, I pressed the reset button. When It started up I received this message:
Unfortunately it doesn't always work which is what happened to me.
Every time I clicked yes it restarted but I got the Microsoft Registry Checker error again and again and again.
Clearly this wasn't solving the problem so I thought I would try disabling the registry checker.
To start msconfig you just select start->run and type "msconfig" (no quotes)
This will bring up a little program with several tabs if you click the "startup" tab you will see all the progams that start up with windows. (this program should be avaliable in win95 and win98 new versions may not have it)
To prevent a program from starting just click the check box beside its name. If it has a tick it will be loaded no tick = will not start with windows.
I deselected "scanregw.exe /autorun" which was the only candidate for a registry checker.
The /autorun switch means that the scanner will check the registry on start up and not say anything (except upon error) or ask for any input.
I restarted my computer and got no message! But it was unstable and I knew something was still wrong.
Another of those enhancements which should make using Windows 98 more user friendly is the ScanReg Registry Checker.Each day, after a successful boot, a backup copy of your registry is created (containing the System.dat, User.dat, System.ini and Win.ini files). By default Windows 98 allows you to keep up to 5 copies (rb???.cab - rb???.cab) of your registry (which are saved in the \Windows\Sysbckup folder by default), saved in Windows cabinet files (*.cab).When Windows notices a problem with your registry, it will automatically replace the registry with a backup copy. The good thing about this new feature is that you can easily restore a previous registry "by hand":
If you receive an Out of Memory error message when you try to run Scanreg with the /restore (or /fix) switch, you need to free conventional memory. ScanReg needs 340KB or more conventional memory, depending on the size of the registry and the amount of damage.To increase the amount of free conventional memory, restart your computer, press and hold down the Ctrl key until the Windows 98 Startup menu appears, and then choose Safe mode command prompt only. Then, run Scanreg.exe with the /fix or /restore switch.Now for those of us who regularly install Shareware programs, only to find after a day that the don't bring what we expected, this is a great way to keep the registry clean. Before you install a new piece of software, run ScanReg (click Start > Run and type scanreg in the Open dialog box. Windows will scan your registry, and when it doesn't find any errors, will prompt you to back-up your registry. At this stage you would choose Yes.Now if you find after a day that you don't like the program you installed, just uninstall the program in the normal way (see the help- or readme file accompanying the program) and restore the registry you made just before you installed the program, using the method described above.ScanReg Command-Line SwitchesThese are the command-line switches supported by ScanReg:SwitchDescription/autoscanAutomatically scans the registry and backs it up without displaying any prompts if there is already a backup for that date./backupBacks up the registry and related files without displaying any prompts."/comment="Enables you to add a descriptive comment to the registry backup.filenameScans the registry file specified and displays a message indicating whether or not any errors were found. This switch does not back up the registry./fixRepairs any damaged portions of the registry, and optimizes it by rebuilding it without unused space./optCompacts the registry. It will automatically do this during its boot up check if there's more than 500KB of empty space. It will also do this when running /fix./restoreDisplays a list of available backup files, sorted by the date and time the backup was created./scanonlyScans the registry and displays a message if any errors are found. This switch does not back up the registry.The "/comment=" switch can be used by itself or with the /backup switch. For example, you can type either of the following commands at a command prompt: scanreg.exe "/comment=registry backup 5 June" scanreg.exe /backup "/comment=registry backup 5 June"The first command line starts the Registry Checker tool graphical user interface (GUI) and prompts you to create a registry backup. The second command line creates a backup copy of your registry and adds your comment without starting the Registry Checker tool GUI.Go to this page to customize ScanReg.Note: If you made any changes to the system after you made the backup of the registry, these changes will be undone when you restore the older registry.When you configure Windows to use user profiles and run the Windows Registry Checker tool (Scanreg.exe) to back up the computer registry, the User.dat files that are associated with each profile are not backed up.For more information see Microsoft Knowledge Base Article 245147.Error MessagesWhen you use the scanreg /restore command at a command prompt in MS-DOS mode to restore the registry, you may receive an error message stating that the registry was not restored.See Microsoft Knowledge Base Article 228779 for a possible solution.When you restore a previous registry using the scanreg /restore command, you may receive the following error message:Microsoft Registry CheckerSystem restore operation failedSee Microsoft Knowledge Base Article 245412 for a solution.When you attempt to manually restore a previous copy of your computer registry using the scanreg command with the /restore switch (scanreg /restore), you may receive the following error message:Restore Operation FailedSee Microsoft Knowledge Base Article 220878 for a solution.
andreas owen
ao...@arcade.ch
RE: How can I avoid W95 scandisk at start? joeabdo (MIS)17 Apr 02 14:12check if there is bad clusters on ur HDD RE: How can I avoid W95 scandisk at start? Kjonnnn (IS/IT--Management)17 Apr 02 17:351. run scandisk and let it repair all that it needs to repair.
2. If it needs to repair after EVERYTIME u start up, either of two things are happening. Either your drive is bad, OR and the most probably cause is, W95 isnt shutting down properly.
Check your autoexec file to see if On Error do a scan is in there.
But first set aside a time and do a full scandisk to clear up errors. If you've never let it run to completion, that might be your problem. RE: How can I avoid W95 scandisk at start? dakota81 (TechnicalUser)17 Apr 02 19:29The easiest way is to get the utility TweakUI. There was a version for Windows 95, downloadable from the internet somewhere (try Microsoft's site first). I never tried out TweakUI for 95, I started using it under 98, though I know there was a 95 version. From this utility you can easily customize a multitude of options, including whether or not Scandisk runs on startup.
Don't worry about the message that is displayed about a possible problem with your drive, 99.999% of the time there is nothing wrong with the drive.
If you have actually do have a physical problem w/ the harddrive, scandisk cannot be trusted to notify you of any problems anyways. Your best indication is when Windows pops up with a message saying "cannot write to drive c:" or "unable to access cluster xxx", something like that. RE: How can I avoid W95 scandisk at start? MiggyD (Programmer)17 Apr 02 21:52If you have Win95 you may have CHKDSK.exe in the COMMAND folder. Try using that with verify and fix options. that may help. --MiggyD
Never be afraid to try something new. Remember that amateurs built the Ark. Professionals built the Titanic. RE: How can I avoid W95 scandisk at start? joelmiller98 (IS/IT--Management)18 Apr 02 13:16A simple and effective thing I always do when setting up a computer is rename these 4 files.
rename c:\windows\scandskw.exe scandskw.xex
rename c:\windows\command\scandisk.exe scandisk.xex
rename c:\windows\command\scanreg.exe scanreg.xex
rename c:\windows\command\scanregw.exe scanrgw.xex
googletag.cmd.push(function() googletag.display('div-gpt-ad-1406030581151-2'); ); Red Flag This PostPlease let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.
CancelRed Flag SubmittedThank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.