Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
Using Registry Editor in Real Mode
Article ID: 131352 - View products that this article applies to.
This article was previously published under Q131352
IMPORTANT: This article contains information about editing the registry. Before you edit the registry, you should first make a backup copy of the registry files (System.dat and User.dat). Both are hidden files in the Windows folder.
The registry is a system-wide database used for storing Windows 95 soft- ware and hardware configuration settings. The registry consists of the System.dat and User.dat files, which are located in the Windows folder. These files are backed up as System.da0 and User.da0 after every successful boot of Windows 95.
Windows 95 includes a Registry Editor program (Regedit.exe) that runs in both the real-mode MS-DOS environment and in the protected-mode Windows environment. When you need to modify the registry without starting Windows 95, use Registry Editor in real mode. Note that the switches listed in this article only work in real-mode.
WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall Windows 95. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.
NOTE: For information about how to edit the registry, view the Changing Keys And Values online Help topic in Registry Editor (Regedit.exe). Note that you should make a backup copy of the registry files (System.dat and User.dat) before you edit the registry.
To export, modify, and then import registry data using Registry Editor in real mode, follow these steps:
131431The changes take effect the next time you start Windows 95. If the changes you make cause problems in Windows 95 or you want to revert to the registry before you made the changes, restart your computer, press the F8 key when you see the "Starting Windows 95" message, and then choose Safe Mode Command Prompt Only from the Startup menu. At the command prompt, type the following commands, pressing ENTER after each command:
(http://support.microsoft.com/kb/131431/EN-US/ )How to Troubleshoot Registry Errors in Windows 95
cd\<windows>NOTE: If user profiles are enabled in Windows 95, the above procedure only changes the User.dat file in the Windows folder. It does not make any changes to the User.dat file in the <windows>\profiles\<username> folder, (where <username> is the name you use to log on to Windows 95.
attrib -s -h -r *.dat
ren user.dat user.bad
ren system.dat system.bad
copy user.sav user.dat
copy system.sav system.dat
If you want to modify only the System.dat or User.dat file, or if there is a problem working with both the User.dat and System.dat file in one registry file, there are switches you can use that enable you to work with specific files. For information about problems with importing a registry with large keys, see the following article in the Microsoft Knowledge Base:
132064The following procedure gives the commands for changing step 4 above, which exports the entire registry, and step 6 above, which imports the text file (in this instance, the User.dat file):
(http://support.microsoft.com/kb/132064/EN-US/ )REGEDIT May Not Be Able to Import Registry with Large Keys
To export the User.dat file to a text file located in the root folder, type the following command at a command prompt, and then press ENTER:
regedit /l:c:\windows\user.dat /e c:\user.txtStep 6:
To merge or import the User.txt file back into the registry, type the following command:
regedit /l:c:\windows\user.dat c:\user.txt [without /c]If you want to create a new User.dat file from the exported text file, thereby replacing the existing User.dat file, type the following command at a command prompt, and then press ENTER:
regedit /c registry.txt
SyntaxThe syntax and command-line switches for using Regedit to import to, create, or export from the registry in real mode are as follows:
To merge or import a text file into the registry, use the following command:
regedit [/L:system] [/R:user] filename1To create and replace an existing registry from a text file, use the /c switch as follows:
regedit [/L:system] [/R:user] /C filename2To export text from the registry, use the /e switch as follows:
regedit [/L:system] [/R:user] /E filename3 [regpath]
To see this list, type regedit /? at the command prompt.
Article ID: 131352 - Last Review: November 15, 2006 - Revision: 1.1