Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File Association

Status
Not open for further replies.

akutty

IS-IT--Management
Jul 7, 2004
31
GB
Hi All,
Wanted to know how to change File association using Visual basic. For e.g .zip file gets opened with winzip hwoever when some one clicls .zip file, it should open with notepad. Basically change file association which can be done using folder options -->File types in windows 2000.
Thanks
Anil
 
The paths to be ran for each extension are held in the registry at HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Extensions

You can manipulate the values by using the registry API functions

mmilan
 
Scratch that...

The reg key path is wrong...

Looking for the right one...
 
Hi All,

I hav etried various options using ASSOC Command but it still doesnt work. I have found teh registry key which stores this, however not sure how to manipualte using code.
Thanks in advance for any help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top