Scott MacMaster
June 1st, 1999, 05:06 PM
I'm trying to write some code that will modify the registry so files can be opened with my program. After playing with the registry using regedit I figured out what I need to do but I can't figure out how to code it.
First, I need to look at the value here:
HKEY_CLASSES_ROOT\.html\(Default)
on my computer it's "NetscapeMarkup"
This is the first thing I can't get to work.
Then, I take that value and combine it with HKEY_CLASSES_ROOT\ and \shell to get
HKEY_CLASSES_ROOT\NetscapeMarkup\shell
Then, I can add the options under the path. Such as edit, open, etc.
What I want to do is add Edit\command\(Default) under HKEY_CLASSES_ROOT\NetscapeMarkup\shell if it's nots already there then set the value to the location of my program.
I can't figure out how to do this either.
Can anyone help me?
Scott MacMaster
______________________
http://welcome.to/scottweb
First, I need to look at the value here:
HKEY_CLASSES_ROOT\.html\(Default)
on my computer it's "NetscapeMarkup"
This is the first thing I can't get to work.
Then, I take that value and combine it with HKEY_CLASSES_ROOT\ and \shell to get
HKEY_CLASSES_ROOT\NetscapeMarkup\shell
Then, I can add the options under the path. Such as edit, open, etc.
What I want to do is add Edit\command\(Default) under HKEY_CLASSES_ROOT\NetscapeMarkup\shell if it's nots already there then set the value to the location of my program.
I can't figure out how to do this either.
Can anyone help me?
Scott MacMaster
______________________
http://welcome.to/scottweb