I can't find any reference in Win98 help or the KB. Is there a simple
list of regedit switches available?
Thanks
--
David Lockwood
University Department of Surgery
Princess Alexandra Hospital
Brisbane, Australia
Windows 95 Registry
Registry Structure
Saving and Restoring the Registry
(a short extract)
regedit [/L:system] [/R:user] file1.reg, file1a.reg...
regedit [/L:system] [/R:user] /e file3.reg [regkey]
regedit [/L:system] [/R:user] /c file2.reg
/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.
regkey Optionally, specifies the starting Registry key from which to
export a portion of the Registry. If no value is specified, regedit /e
exports the entire Registry.
/c file2.reg Specifies the .REG file to use to replace the entire
contents of the Registry.
If you want more references, let me know.
...Alan
--
Alan Edwards, MS MVP W95/98 Systems
In microsoft.public.win98.scanreg, David Lockwood
MSDos Mode
REGEDIT [/L:system] [/R:user] filename1
REGEDIT [/L:system] [/R:user] /C filename2
REGEDIT [/L:system] [/R:user] /E filename3 [regpath1]
OSR 2 and later versions
REGEDIT [/L:system] [/R:user] /D regpath2
Windows Mode
REGEDIT [/S] filename1
/L:system Specifies the location of the SYSTEM.DAT file.
/R:user Specifies the location of the USER.DAT file.
filename1 Specifies the file(s) to import into the registry.
/C filename2 Specifies the file to create the registry from.
/E filename3 Specifies the file to export the registry to.
Regpath1 Specifies the starting registry key to export from. (Defaults to
exporting the entire registry).
/D regpath2 Deletes the specified registry key.
/S Silent merge (no confirmation dialogs)
Defragging the Registry
In OSR 2 (950B) Regedit can be used to sort and compact the registry.
Export the entire registry from Regedit in Windows, go to MS-Dos mode and
recreate the directory using the /c parameter. This will not work properly
in Win 95 950 or 950A, only 950B.
In Windows 98 see Scanreg to defrag the registry (though the above will
work).
Changes to the registry aren't actually deleted, just marked as unused. This
makes the registry larger than it needs to be.
--
Mark Dormer
http://www.angelfire.com/biz/serenitymacros
Updated Oct 1999
"Alan Edwards" <edw...@southcom.com.au> wrote in message
news:9q115sk72d3hgopu4...@4ax.com...