Google 网上论坛不再支持新的 Usenet 帖子或订阅项。历史内容仍可供查看。

regedit command-line swtiches

已查看 16 次
跳至第一个未读帖子

anon...@discussions.microsoft.com

未读,
2003年10月28日 15:34:182003/10/28
收件人
Where can i find the listing of regedit command-line
swtiches (and their meaning)?

Mark V

未读,
2003年10月28日 15:42:462003/10/28
收件人
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

未读,
2003年10月28日 15:51:042003/10/28
收件人
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)

未读,
2003年10月29日 06:08:172003/10/29
收件人
"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

未读,
2003年10月29日 09:16:052003/10/29
收件人
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

未读,
2003年10月29日 09:27:532003/10/29
收件人

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

未读,
2003年10月29日 09:35:492003/10/29
收件人
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)

未读,
2003年10月29日 10:15:342003/10/29
收件人
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 个新帖子