Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

regedit command-line swtiches

16 views
Skip to first unread message

anon...@discussions.microsoft.com

unread,
Oct 28, 2003, 3:34:18 PM10/28/03
to
Where can i find the listing of regedit command-line
swtiches (and their meaning)?

Mark V

unread,
Oct 28, 2003, 3:42:46 PM10/28/03
to
In microsoft.public.win2000.registry mbe...@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.

anon...@discussions.microsoft.com

unread,
Oct 28, 2003, 3:51:04 PM10/28/03
to
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.

>.
>

Torgeir Bakken (MVP)

unread,
Oct 29, 2003, 6:08:17 AM10/29/03
to
"mbe...@sterling-engineering.com" wrote:

> 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"=-

--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter


Phil

unread,
Oct 29, 2003, 9:16:05 AM10/29/03
to
try:

http://support.microsoft.com/default.aspx?
scid=http://support.microsoft.com:80/support/kb/articles/Q8
2/8/21.ASP&NoWebContent=1


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

>.
>

Mark V

unread,
Oct 29, 2003, 9:27:53 AM10/29/03
to

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

Mark V

unread,
Oct 29, 2003, 9:35:49 AM10/29/03
to
In microsoft.public.win2000.registry Phil wrote:

"The information in this article applies to:
Microsoft Windows 3.1
Microsoft Windows 3.11
"

Torgeir Bakken (MVP)

unread,
Oct 29, 2003, 10:15:34 AM10/29/03
to
Mark V wrote:

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

Yes, http://www.winguides.com/article.php?id=1&page=4&guide=registry states
that /C and /D is for Windows 98.

0 new messages