Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27349

VS 2013 Does Registry "SubKey" Exist Or Not

$
0
0
I have done a master search of the Forum for my answer, found a lot of Registry questions, but
none dealing in the exact manner, so I apologize if I have over looked anything.

I am in Visual Basic, within Visual Studio Ultimate 2013.

Problem involves working with the Registry.

I have no problem reading Key values, Creating, and Deleting Keys etc.

However, I cannot for the life of me figure out how to "simply" dictate if a "SubKey" exists, ....or not.

That's it.

Nothing fancy, nothing above, nothing beyond.

As an example:

When my VB program starts, I want it to check for the "existence" of a "SubKey" entitled, "my_prog_name"

HKEY_CLASSES_ROOT\*\shell\my_prog_name

If it exists, I would like to be returned a "1", or, "True", etc.

If it does not exist, "0", or "False".

I am not looking for a Key, "Value", ...just if a certain "SubKey" Exists or not.


You get the picture, just like in "old days" VB programming, sweet and simple.

It's the little things, sometimes, that can be the most hassle.



Any help is greatly appreciated.

Thank you.

Viewing all articles
Browse latest Browse all 27349

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>