How to Use REGEDIT From the Command Line
- 1). Click "Start," "All Programs" and "Accessories."
- 2). Click "Command Prompt." This program is located under "Accessories" for most versions of Windows.
- 3). Type "regedit.exe" into the command line, and press "Enter" to launch the registry window. If you are using Windows Vista or Windows 7, a prompt appears asking if you want let the program make changes to the computer. Click "Yes." The Registry Editor window appears.
- 4). Type "regedit.exe /s [file name]" to import files into the registry. For example, to import "example.reg" into your registry, type "regedit.exe /s example.exe." Type "regedit.exe /e [file name]" to export registry entries to a file. For example, to export your hardware entries to your "example.reg" file, type "regedit.exe /e example.reg HKEY_LOCAL_MACHINE\HARDWARE." Use a backslash before "HARDWARE." Backslashes are used to identify the registry folder you are trying to modify, rather than the forward slash. Use a forward slash everywhere else.