>Ron Taylor wrote:
>> I ran the following:
>> ~c:\windows regedit /L:system /E temp.txt
>> I then searched the temp.txt for VXDLDR and found them.
>> Removed the entries and then ran the following:
>> ~c:\windows regedit /L:system /C temp.txt
Then Jeff wrote:
>I couldn't find anything that says what the /L, /E, and /C switches do
>for Regedit. Can anyone explain, please? Thanks.
Hi Jeff
Suppose you want to run the real mode regedit.exe (which is in c:\windows
and also on the emergency startup diskette) to import or export .REG files.
The form of the commands would be:
regedit [/L:system] [/R:user] file1.reg, file1a.reg,...
regedit [/L:system] [/R:user] /E file3.reg
regedit [/L:system] [/R:user] /C file2.reg
where
/L:system specifies the location of SYSTEM.DAT
/R:user specifies the location of USER.DAT
file1.reg specifies one or more .REG files to IMPORT into the registry
/E file3.reg specifies the filename to which the Registry should be EXPORTED
/C file2.reg specifies the .REG file to use to REPLACE the *entire* contents
of the registry. Be very sure that file2.reg is a complete working
copy of the registry or you will end up an incomplete registry.
Examples: the word "system" above would probably be replaced by "C:\WINDOWS\"
and "user" might be "C:\WINDOWS\" or perhaps "C:\WINDOWS\PROFILES". So the line
REGEDIT /L:C:\WINDOWS\ /R:C:\WINDOWS\ /E C:\BACKUP.REG
would export the registry to a file called C:\BACKUP.REG.
The switches /L: and /R: are optional since system.dat and user.dat
are normally in c:\windows.
In Ron's example, I gather that while in MS-DOS Mode, he exported his registry
to a file called temp.txt, removed stuff from this file, then imported the
changed file back so it would become a new trgistry. For example, you could run
c:\windows\regedit /E C:\temp.txt
to export the registry. Then edit C:\temp.txt to get rid of something, then run
c:\windows\regedit /C C:\temp.txt
to replace the registry. Very dangerous stuff unless one is desperate.
Regards,
Bill
|