Changing the program to open a File

G

Guest

Hi there,
Does anyone know how we can PROGRAMMATICALLY change the program used to open
a file? I am using vb.net. Any help will be gratly appreciated!!
Thank you
Rupa
 
G

Guest

You mean like if at one point if you click on a jpg it opens Paint, and then
you make a change and then a jpg opens to Adobe?

That would be a registry entry that you can manipulate
 
S

scorpion53061

Open With (File Associations):

rundll32.exe shell32.dll,OpenAs_RunDLL d:\path\filename.ext
 
G

Guest

Thanks for your help. To be specific, my case is that I have a 3rd party zip
application that creates a .cmp file. When a user downloads this .cmp file, I
have a utility to expand this file. So when a user double clicks on the .cmp
file, I want it to open with my .exe to unzip. Any ideas on how can I do this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top