473,402 Members | 2,046 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

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 1057
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Satish Kumar Chimakurthi | last post by:
Hi all, An external solver program is dynamically producing files with different names 0000001.dat, 0000002.dat, 0000003.dat etc.....at regular intervals. These files contain all numeric data....
7
by: kah | last post by:
How do I change a line in a file?? For example I have the follwing text in my file: line1 line2 line3 line4 How do I replace 'line2' with 'newline'. Since the write operation in
5
by: Diana Coppenbarger | last post by:
Hi, I have a calendar program that is popped up by a HTML so that the user can choose a specific date to be filled in via javascript from the calendar program. I am using window.open() to start...
2
by: Gopal | last post by:
Hi, I've a module report.py having a set of funtions to open/close/write data to a log file. I invoke these functions from another module script.py. Whenever I'm changing something in...
4
by: Pokerkook | last post by:
Hello, If anybody could help me with this I would greatly appreciate it. Or at least tell me why I get the output of this garbage: 49 49 10 49 52
4
vninja
by: vninja | last post by:
Hi, i'm totally lost. Im trying to create a program that reads a file and then changes some text in the file. i've got a couple approaches to this problem but i cannot find the resources nessesary...
11
by: Toby | last post by:
I am a little new as you can tell by this post. This is my first c# window app and I made all my forms and now trying to go back and change the start up form and it is giving me errors when I...
2
by: deepika patra | last post by:
hi all, let me explain u my problem in detail.i m trying to develop an application in c#.net. i have to show a form in wich i hav to take a check box & a quit menu.wen i press the quit...
3
by: Stef Mientki | last post by:
hello, I've a program (not written in Python) that generates a few thousands bytes per second, these files are dumped in 2 buffers (files), at in interval time of 50 msec, the files can be read...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.