How to open specified location in Registry

  • Thread starter Thread starter yxq
  • Start date Start date
Y

yxq

Hello,
I want to open the specified location in Registry using VB.NET similar
Registry Favorite, how to do?

The regedit.exe can not open specified location.

Thank you
 
YXQ,

Probably because that the favorites are not in the registry however in the
"favorite" folder.
The name and place of that is depending from the used system however you can
find it with

Environment.GetFolderPath(Environment.SpecialFolder.Favorites)

I hope this helps?

Cor
 
Thanks, but i think you have not understanded my meaning.
When open the Registry Editor, i want to straightway locate and open a
specified key(i.e. "HKEY_CURRENT_USER\Software").
 
yxq,

I think I miss your question, can you tell me what is the relation to VBnet,
than maybe I understand it better?

Cor
 
yxq said:
I want to open the specified location in Registry using VB.NET similar
Registry Favorite, how to do?

The regedit.exe can not open specified location.

I don't know a stable and good solution for that. Maybe it works by setting
the
'HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit\LastKey'
registry key before starting "regedit".
 
Like some registry monitor software, double-click a registry key(i.e.
"HKEY_CURRENT_USER\Software"), the Registry Editor will be openned and
locate to the specified key("HKEY_CURRENT_USER\Software") now.

Thank you
 
yxg,

First, I don't see how this is VBNet related, can you explain that too me. I
have no problems with answering OT messages. However otherwise that we are
building a complete thread with it seems me a little bit overdone.

Second when you want to see the registry using regedit you needs
administrator rights.

Cor
 
Hello,
I want to to open Registry Editor in the specified location using
regedit.exe,
for example, regedit.exe "HKEY_CURRENT_USER\Software", how to do?
 

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

Back
Top