Delete ValueName by Merging file

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.
 
O

Oli Restorick [MVP]

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.
 
D

David Tam

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.
 

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