Delete ValueName by Merging file

  • Thread starter Thread starter David Tam
  • Start date Start date
D

David Tam

I have learned a lot from this newsgroup. Thanks.
I have a WinXP machine, sp1. I am the administrator.
I want to delete certain ValueName with its value in Windows Registry.
I use the command line: regedit /s myFile.reg
The content of myFile is:
Windows Registry Editor Version 5.00
[-HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run\HotKeysCmds]

But it does not work, can help?

However, I can delete the ValueName and its value using regedit.exe GUI.

And I can make the entry value to empty string by having the merging reg file as following.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
"HotKeysCmds"=""

I need to delete the ValueName and its value. Any help?
Thanks in advanced.
Sincerely,
david dot tam at aruplab dot commercial
thanks again.
 
You're very close. Here's what you need to delete a value:

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
"HotKeysCmds"=-

That is, = followed by -

Hope this helps

Oli



I have learned a lot from this newsgroup. Thanks.
I have a WinXP machine, sp1. I am the administrator.
I want to delete certain ValueName with its value in Windows Registry.
I use the command line: regedit /s myFile.reg
The content of myFile is:
Windows Registry Editor Version 5.00
[-HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run\HotKeysCmds]

But it does not work, can help?

However, I can delete the ValueName and its value using regedit.exe GUI.

And I can make the entry value to empty string by having the merging reg file as following.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
"HotKeysCmds"=""

I need to delete the ValueName and its value. Any help?
Thanks in advanced.
Sincerely,
david dot tam at aruplab dot commercial
thanks again.
 
Oli,
It works, and I thank a million. Thanks again.

--
KAI WING (DAVID) TAM
You're very close. Here's what you need to delete a value:

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
"HotKeysCmds"=-

That is, = followed by -

Hope this helps

Oli



I have learned a lot from this newsgroup. Thanks.
I have a WinXP machine, sp1. I am the administrator.
I want to delete certain ValueName with its value in Windows Registry.
I use the command line: regedit /s myFile.reg
The content of myFile is:
Windows Registry Editor Version 5.00
[-HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run\HotKeysCmds]

But it does not work, can help?

However, I can delete the ValueName and its value using regedit.exe GUI.

And I can make the entry value to empty string by having the merging reg file as following.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
"HotKeysCmds"=""

I need to delete the ValueName and its value. Any help?
Thanks in advanced.
Sincerely,
david dot tam at aruplab dot commercial
thanks again.
 
Back
Top