468,738 Members | 1,752 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,738 developers. It's quick & easy.

Changing the program to open a File

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
Nov 21 '05 #1
3 941
EdB
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

"Rupa" wrote:
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

Nov 21 '05 #2
Open With (File Associations):

rundll32.exe shell32.dll,OpenAs_RunDLL d:\path\filename.ext
"Rupa" <Ru**@discussions.microsoft.com> wrote in message
news:5E**********************************@microsof t.com:
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


Nov 21 '05 #3
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?

"scorpion53061" wrote:
Open With (File Associations):

rundll32.exe shell32.dll,OpenAs_RunDLL d:\path\filename.ext
"Rupa" <Ru**@discussions.microsoft.com> wrote in message
news:5E**********************************@microsof t.com:
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


Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Satish Kumar Chimakurthi | last post: by
7 posts views Thread by kah | last post: by
5 posts views Thread by Diana Coppenbarger | last post: by
vninja
4 posts views Thread by vninja | last post: by
11 posts views Thread by Toby | last post: by
3 posts views Thread by Stef Mientki | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
xarzu
2 posts views Thread by xarzu | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.