PC Review


Reply
Thread Tools Rate Thread

Changing a key entry

 
 
Joseph
Guest
Posts: n/a
 
      13th Jan 2006
Hello

Within \hkey_local_machine\software\gemstar, is a registry entry of name N,
type reg_sz, Data 25.

Using a .reg file, how would I change the value from say 25 to 0. Would it
also work with negative numbers, say I wanted to change the value from 25
to -10.

Thank you


 
Reply With Quote
 
 
 
 
Dave Patrick
Guest
Posts: n/a
 
      13th Jan 2006
It's a string so yes the -10 will work but we've no idea whether the value
is acceptable to the application that reads the key.

------------gemstar.reg-----------
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\gemstar]
"N"="-10"
----------------------------------

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"Joseph" wrote:
| Hello
|
| Within \hkey_local_machine\software\gemstar, is a registry entry of name
N,
| type reg_sz, Data 25.
|
| Using a .reg file, how would I change the value from say 25 to 0. Would
it
| also work with negative numbers, say I wanted to change the value from 25
| to -10.
|
| Thank you
|
|


 
Reply With Quote
 
Joseph
Guest
Posts: n/a
 
      13th Jan 2006
Thank you, worked like a charm.

Quick question, when I was searching on how to make a registry file, I came
across a thread where someone was trying to delete a registry entry using a
..reg file and having the syntax

- [key]

This didn't work and someone suggested typing REGEDIT4 at the top of the
file. When I did the same thing, this worked for me.

What does regedit4 do?

"Dave Patrick" <(E-Mail Removed)> wrote in message
news:uYi6ok$(E-Mail Removed)...
> It's a string so yes the -10 will work but we've no idea whether the value
> is acceptable to the application that reads the key.
>
> ------------gemstar.reg-----------
> Windows Registry Editor Version 5.00
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\gemstar]
> "N"="-10"
> ----------------------------------
>
> --
>
> Regards,
>
> Dave Patrick ....Please no email replies - reply in newsgroup.
> Microsoft Certified Professional
> Microsoft MVP [Windows]
> http://www.microsoft.com/protect
>
> "Joseph" wrote:
> | Hello
> |
> | Within \hkey_local_machine\software\gemstar, is a registry entry of name
> N,
> | type reg_sz, Data 25.
> |
> | Using a .reg file, how would I change the value from say 25 to 0. Would
> it
> | also work with negative numbers, say I wanted to change the value from
> 25
> | to -10.
> |
> | Thank you
> |
> |
>
>



 
Reply With Quote
 
Jerold Schulman
Guest
Posts: n/a
 
      13th Jan 2006

See tip 4012 » How do a delete a value name using Regedit in batch?
AND link in the 'Tips & Tricks' at http://www.jsifaq.com




On Fri, 13 Jan 2006 04:46:49 GMT, "Joseph" <joseph388@@hotmail.com> wrote:

>Thank you, worked like a charm.
>
>Quick question, when I was searching on how to make a registry file, I came
>across a thread where someone was trying to delete a registry entry using a
>.reg file and having the syntax
>
>- [key]
>
>This didn't work and someone suggested typing REGEDIT4 at the top of the
>file. When I did the same thing, this worked for me.
>
>What does regedit4 do?
>
>"Dave Patrick" <(E-Mail Removed)> wrote in message
>news:uYi6ok$(E-Mail Removed)...
>> It's a string so yes the -10 will work but we've no idea whether the value
>> is acceptable to the application that reads the key.
>>
>> ------------gemstar.reg-----------
>> Windows Registry Editor Version 5.00
>>
>> [HKEY_LOCAL_MACHINE\SOFTWARE\gemstar]
>> "N"="-10"
>> ----------------------------------
>>
>> --
>>
>> Regards,
>>
>> Dave Patrick ....Please no email replies - reply in newsgroup.
>> Microsoft Certified Professional
>> Microsoft MVP [Windows]
>> http://www.microsoft.com/protect
>>
>> "Joseph" wrote:
>> | Hello
>> |
>> | Within \hkey_local_machine\software\gemstar, is a registry entry of name
>> N,
>> | type reg_sz, Data 25.
>> |
>> | Using a .reg file, how would I change the value from say 25 to 0. Would
>> it
>> | also work with negative numbers, say I wanted to change the value from
>> 25
>> | to -10.
>> |
>> | Thank you
>> |
>> |
>>
>>

>


Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
 
Reply With Quote
 
Dave Patrick
Guest
Posts: n/a
 
      14th Jan 2006
If you want to remove a key and all it's underlying values then you'll need
to construct your .reg file with a - minus sign in front of the key you want
to remove.

An example file to remove a file association .zzz from HKCR
-----------------Begin File-----------
Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\.zzz]
----------------End File-------------

(note the minus sign in front of HKEY)


If you need to delete only certain values, for example the string value
"InfoTip"="Contains zzz files"

Then put a minus sign after the equals sign without "quotes", something like
"InfoTip"=-

So your .reg file would look like
----------------Begin File------------
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.zzz]
"InfoTip"=-
----------------End File-------------

regedit /s filename.reg to import silently


--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"Joseph" wrote:
| Thank you, worked like a charm.
|
| Quick question, when I was searching on how to make a registry file, I
came
| across a thread where someone was trying to delete a registry entry using
a
| .reg file and having the syntax
|
| - [key]
|
| This didn't work and someone suggested typing REGEDIT4 at the top of the
| file. When I did the same thing, this worked for me.
|
| What does regedit4 do?


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
changing entry's quickly cj21 Microsoft Excel Discussion 1 28th Jul 2005 03:38 PM
changing entry's quickly cj21 Microsoft Excel Discussion 0 28th Jul 2005 03:22 PM
changing entry's quickly cj21 Microsoft Excel Discussion 0 28th Jul 2005 03:22 PM
changing entry's quickly cj21 Microsoft Excel Discussion 0 28th Jul 2005 03:21 PM
Changing an Autotext Entry Gordon Microsoft Word New Users 5 15th Feb 2005 11:01 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:56 PM.