Forums: Registry - Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Registry Shortcuts

#1 User is offline   kingvandal 

  • Master Sergeant
  • Icon
  • Group: Second Lieutenant
  • Posts: 719
  • Joined: 27-January 04

Posted 08 July 2005 - 12:08 AM

is it possible to create a shortcut to certain registry key on the desktop like any other shortcut in windows?

kv-
Tchirimbimbim!!!
Very Interesting: Windows XP Source Code! and Windows Vista Source Code!!. Read'em and weap...
0

#2 User is offline   andydis 

  • Master Sergeant
  • Icon
  • Group: Specialist
  • Posts: 622
  • Joined: 21-August 03

Posted 08 July 2005 - 12:18 AM

its possible to open regedit and it will "remember" the key you where last looking at.


maybe you can tell us what exactly you are trying to do?
0

#3 User is offline   kingvandal 

  • Master Sergeant
  • Icon
  • Group: Second Lieutenant
  • Posts: 719
  • Joined: 27-January 04

Posted 08 July 2005 - 01:02 AM

i am writing a vb app and I want it to have shortcuts to certain keys like run and shellexecutehooks etc.. I was figuring on just creating shortcuts and access them that way. I am still new to VB so that was the only way I could think of.

kv-
Tchirimbimbim!!!
Very Interesting: Windows XP Source Code! and Windows Vista Source Code!!. Read'em and weap...
0

#4 User is offline   belgther 

  • Master Sergeant
  • Icon
  • Group: Specialist
  • Posts: 650
  • Joined: 06-October 04

Posted 08 July 2005 - 02:28 AM

HKCU\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit\LastKey contains the info you are looking for. You have to modify this value before opening registry. This can serve you well, but not as direct shortcuts.
"The wisest one is the one who knows himself/herself." Quote of the life
belgther... aka... belgther
0

#5 User is offline   Jeremy 

  • Commander in Chief
  • Icon
  • Group: Admin
  • Posts: 2,345
  • Joined: 14-May 03

Posted 08 July 2005 - 02:47 AM

belgther has the simplest solution. In XP, there is a "Favorites" in the registry editor. They are located in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit\Favorites you might be able to somehow open the registry editor directly to a favorite wth some new undocumented switch.
Your time is limited, so don't waste it living someone else's life. Don't be trapped by dogma � which is living with the results of other people's thinking. Don't let the noise of others' opinions drown out your own inner voice. And most important, have the courage to follow your heart and intuition. They somehow already know what you truly want to become. Everything else is secondary.
~Steve Jobs

Jeremy aka w00dy aka foadah
0

#6 User is offline   belgther 

  • Master Sergeant
  • Icon
  • Group: Specialist
  • Posts: 650
  • Joined: 06-October 04

Posted 08 July 2005 - 02:50 AM

w00dy, do you have anything there? I looked at mine now, and didn't see anything at all (except the obligatory default key). So it made me think whatever this thing can be good for :)
"The wisest one is the one who knows himself/herself." Quote of the life
belgther... aka... belgther
0

#7 User is offline   kingvandal 

  • Master Sergeant
  • Icon
  • Group: Second Lieutenant
  • Posts: 719
  • Joined: 27-January 04

Posted 08 July 2005 - 03:56 AM

think I may have a way. I could in theory export all of my favorites and then have VB import them in when the button is clicked that way they would have them there. And make it backup the key prior to importing. think that'll work?

Ntregmon does what I want. When you double click on the key in the list it opens regedit and go right the the specific key. How is that done?

kv-
Tchirimbimbim!!!
Very Interesting: Windows XP Source Code! and Windows Vista Source Code!!. Read'em and weap...
0

#8 User is offline   belgther 

  • Master Sergeant
  • Icon
  • Group: Specialist
  • Posts: 650
  • Joined: 06-October 04

Posted 08 July 2005 - 04:14 AM

Ntregmon does the following:
1)It fires up regedit.
2)Then it sends the target key via SendMessage api.
Well, it didn't take too much time to find it out, PM me if you have questions about it.

cheerz,

belgther
"The wisest one is the one who knows himself/herself." Quote of the life
belgther... aka... belgther
0

#9 User is offline   Booster2ooo 

  • Sergeant
  • Icon
  • Group: Members
  • Posts: 233
  • Joined: 04-October 04

Posted 08 July 2005 - 01:17 PM

As the post is opened, i'll ask a little question, with a dos cmd, how to remove a reg key ? To add one, it's quite simple, regedit /s file.reg, but how del ???
0

#10 User is offline   belgther 

  • Master Sergeant
  • Icon
  • Group: Specialist
  • Posts: 650
  • Joined: 06-October 04

Posted 08 July 2005 - 01:23 PM

Booster2ooo, on Jul 8 2005, 10:17 PM, said:

As the post is opened, i'll ask a little question, with a dos cmd, how to remove a reg key ? To add one, it's quite simple, regedit /s file.reg, but how del ???


Googling for "registry parameters" without quotes gave me that result which answers your question:
http://www.robvander....com/index.html
Hope this helps...
"The wisest one is the one who knows himself/herself." Quote of the life
belgther... aka... belgther
0

#11 User is offline   gr33dy 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 25
  • Joined: 15-June 05

Posted 08 July 2005 - 01:25 PM

Booster2ooo, on Jul 8 2005, 02:17 PM, said:

As the post is opened, i'll ask a little question, with a dos cmd, how to remove a reg key ? To add one, it's quite simple, regedit /s file.reg, but how del ???

To remove an entire "tree" from the registry using REGEDIT and a .REG file, just add a minus sign before the tree name:

REGEDIT4

[-HKEY_CURRENT_USER\DummyTree]

will remove the entire tree "DummyTree".

To remove an individual item from the registry, place the minus sign after the equal sign:
REGEDIT4

[HKEY_CURRENT_USER\DummyTree]
"ValueToBeRemoved"=-

will remove the individual value "ValueToBeRemoved" from "DummyTree".

OR

You can use the "reg delete" command... Load up a cmd prompt and type "reg delete /?" for more options

Examples:

REG DELETE HKLM\Software\MyCo\MyApp\Timeout
Deletes the registry key Timeout and its all subkeys and values

REG DELETE \\ZODIAC\HKLM\Software\MyCo /v MTU
Deletes the registry value MTU under MyCo on ZODIAC

EDIT: belgther, posted at the same time.. :)
0

#12 User is offline   Booster2ooo 

  • Sergeant
  • Icon
  • Group: Members
  • Posts: 233
  • Joined: 04-October 04

Posted 08 July 2005 - 03:00 PM

Thx a lot for you reply, it will be helpfull, I ve try with regedit /? but doesn't work ... I better understand now
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

  • Share



Our Sponsors:


SwiftLayer Affiliate Web Hosting