473,372 Members | 1,682 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,372 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 1055
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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...

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.