|
-
Sep 22nd, 2005, 06:15 AM
#1
Thread Starter
Lively Member
Explorer file association
Does anyone know how to associate a file type in windows explorer with a VB6 program, from within that program - for example like in WinRAR choosing which file types are associated with WinRAR.
I presume that it would need registry editing - but the question is what to edit and how I would go about doing this.
Also, related, is how I would get windows to add an option to run a VB6 program in the right click menu. This, I think, would be similar, but a different registry key.
Can anyone help?
-
Sep 22nd, 2005, 06:33 AM
#2
Re: Explorer file association
Welcome to the forums 
I'm not sure if there is an API that automates this but to add a file association you need to add a key under HKEY_CLASSES_ROOT\.<extension> and make its default value the name of the file type. Then make another key under HKEY_CLASSES_ROOT with the name you just gave the file type, and all associated actions under \<keyname>\shell.
For some examples just fire up regedt32 and have a browse through the HKEY_CLASSES_ROOT section. HTML files are good, just look at \.htm first and then \htmlfile to see how it works.
-
Sep 22nd, 2005, 06:48 AM
#3
Thread Starter
Lively Member
Re: Explorer file association
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|