Use The WMI to Add a Registered FIle Extension to The Registry

Category:
Registry
Type:
Snippets
Difficulty:
Intermediate
Author:
Anonymous

Version 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:

Code: