regedit command-line swtiches

M

Mark V

In microsoft.public.win2000.registry (e-mail address removed)
wrote:
Where can i find the listing of regedit command-line
swtiches (and their meaning)?

regedit.exe [/s /e /a ] regfile "path-to-key" (W2k/XP)

/s silent
regedit /s <Drive:>\FolderName\FileName.reg

/e export
regedit /e "<Drive:>\FolderName\FileName.reg" "KeyPath"

/a ANSI format
regedit /a "<Drive:>\FolderName\FileName.reg" "KeyPath"


From my notes. I have no link handy.
 
M

mbeebe

Thanks Mark.
-----Original Message-----
In microsoft.public.win2000.registry mbeebe@sterling- engineering.com
wrote:

Where can i find the listing of regedit command-line
swtiches (and their meaning)?

regedit.exe [/s /e /a ] regfile "path-to-key" (W2k/XP)

/s silent
regedit /s <Drive:>\FolderName\FileName.reg

/e export
regedit /e "<Drive:>\FolderName\FileName.reg" "KeyPath"

/a ANSI format
regedit /a "<Drive:>\FolderName\FileName.reg" "KeyPath"


From my notes. I have no link handy.
.
 
T

Torgeir Bakken (MVP)

Where can i find the listing of regedit command-line
swtiches (and their meaning)?

Hi

Command line use of Regedit:
http://www.winguides.com/article.php?id=1&page=4&guide=registry


Here is the documentation I have collected on regedit.exe through time:

Exporting:
REGEDIT filename1
REGEDIT /C filename2
REGEDIT /E filename3 [regpath1]
REGEDIT /E:A filename3 [regpath1]
REGEDIT /A filename3 [regpath1]
REGEDIT /D regpath2

/L:system Specifies the location of the SYSTEM.DAT file. 'Can be added
on the command line

/R:user Specifies the location of the USER.DAT file. 'Can be added
on the command line

filename1 Specifies the file(s) to import into the registry.

/E filename3 Specifies the file to export the registry to.

/E:A and /A Specifies ASCII output for W2k/WXP

regpath1 Specifies the starting registry key to export from.
(Defaults to exporting the entire registry).


Importing:
REGEDIT filename1 filename2 filename3 ....
REGEDIT /s "filename1" [filename2 filename3 ....] ' /s = silent



You can delete with registry files !!!!

Delete key:
[-HKEY_LOCAL_MACHINE\SOFTWARE\Brix\Testapp2]

Delete value:
[HKEY_LOCAL_MACHINE\SOFTWARE\Brix\Testapp2]
"Test"=-
 
M

Mark V

In said:
Where can i find the listing of regedit command-line
swtiches (and their meaning)?

Hi

Command line use of Regedit:
http://www.winguides.com/article.php?id=1&page=4&guide=registry


Here is the documentation I have collected on regedit.exe through
time:

Exporting:
REGEDIT filename1
REGEDIT /C filename2
REGEDIT /E filename3 [regpath1]
REGEDIT /E:A filename3 [regpath1]
REGEDIT /A filename3 [regpath1]
REGEDIT /D regpath2

/L:system Specifies the location of the SYSTEM.DAT file.
'Can be added
on the command line

/R:user Specifies the location of the USER.DAT file.
'Can be added
on the command line

filename1 Specifies the file(s) to import into the
registry.

/E filename3 Specifies the file to export the registry to.

/E:A and /A Specifies ASCII output for W2k/WXP

regpath1 Specifies the starting registry key to export
from.
(Defaults to exporting the entire
registry).


Importing:
REGEDIT filename1 filename2 filename3 ....
REGEDIT /s "filename1" [filename2 filename3 ....] ' /s = silent



You can delete with registry files !!!!

Delete key:
[-HKEY_LOCAL_MACHINE\SOFTWARE\Brix\Testapp2]

Delete value:
[HKEY_LOCAL_MACHINE\SOFTWARE\Brix\Testapp2]
"Test"=-

Just to note that some of those switches are W9x-specific and (AFAIK)
cannot be used with regedit (4/5) on NTx platforms.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top