zeroing a registery key programmatically

  • Thread starter Jean Pierre Daviau
  • Start date
J

Jean Pierre Daviau

Hi to the IQs,

How could I put a registery key to 'no characters" with cmd? For example

[HKEY_CURRENT_USER\Identities\{4D10-9DEB-7A4A02955A}\Software\Microsoft\Outlook
Express\5.0\signatures\00000000]
"Text"=""
"name"="GMT"
"type"=dword:00000001
"file"=""

--
Thanks for your attention.

Jean Pierre Daviau
--
Easyphp1.8 with Apache1.3.24
Server version: Apache/2.0.55
Server built: Oct 9 2005 19:16:56
DEVC++, borland 5.5
windows Xp
asus p4 s533/333/133
Intel(R) Celeron (R) CPU 2.00 GHz
Processor Radeon7000 0x5159 agp
http://www.jeanpierredaviau.com
 
A

Alexander Suhovey

Jean Pierre Daviau said:
Hi to the IQs,

How could I put a registery key to 'no characters" with cmd? For
example

[HKEY_CURRENT_USER\Identities\{4D10-9DEB-7A4A02955A}\Software\Microsoft\Outlook
Express\5.0\signatures\00000000]
"Text"=""
"name"="GMT"
"type"=dword:00000001
"file"=""

Try this:

[1]@echo off
[2]set treg="%TEMP%\tmp.reg"
[3](echo
[HKEY_CURRENT_USER\Identities\{4D10-9DEB-7A4A02955A\Software\Microsoft\Outlook
Express\5.0\signatures\00000000]
[4]echo "Text"=""
[5]echo "name"="GMT"
[6]echo "type"=dword:00000001
[7]echo "file"="")>%treg%
[8]regedit /s %treg%
[9]del %treg%

Also, Windows XP/2003 have reg.exe command-line registry manipulation
utiltiy that can be used to simplify process. To get reg.exe on Windows
2000, install Support Tools.
 
A

Alexander Suhovey

Jean Pierre Daviau said:
Thanks I have get
reg.exe

JPD

OK.

BTW, in my example I have missed that "Windows Registry Editor Version 5.00"
string every reg file should start with.
 

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

Similar Threads

registery keys 4
command line VS cmd file 3
pushd 4
FC 3
for /d %I in ("%USERPROFILE%\Cookie\*jeanpierredaviau*.txt") do @echo %I 1
special characters 18
setting screen in ansi on the fly 1
mkdir %_folder% 1

Top