Use The WMI to Add a Registered FIle Extension to The Registry
Category:
RegistryType:
SnippetsDifficulty:
IntermediateAuthor:
AnonymousVersion Compatibility: Visual Basic 6, Visual Basic Script
More information:
This snippet of code will add a new file extension and association to Windows through the Registry.
Instructions: Copy the declarations and code below and paste directly into your VB project.
Declarations: