Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Open with my application

Posted on 2000-04-23
5
Medium Priority
?
132 Views
Last Modified: 2010-05-02
I have two questions here that are related.
1. How do I set the file association so that files open in my app?
2. How do I get the name of the file in my application?  As in, when the user double clicks a file, how can I get the name of the file that they double clicked?
0
Comment
Question by:points
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 14

Expert Comment

by:mcrider
ID: 2742287
See:

Create file Associations
http://www.vb-world.net/tips/tip123.html 

You can get the filename passed by using the Command function Like this:

   Dim X As String
   X = Command


Cheers!®©
0
 
LVL 14

Accepted Solution

by:
mcrider earned 400 total points
ID: 2742297
Also see the following microsoft KB article:

HOWTO: Associate a File Extension with Your Application (Win32)
http://support.microsoft.com/support/kb/articles/Q185/4/53.ASP?LN=EN-US&SD=msdn&FR=0 


Cheers!®©
0
 

Author Comment

by:points
ID: 2742305
Adjusted points from 50 to 100
0
 

Author Comment

by:points
ID: 2742306
Wow.
That was fast.
=)
You get more points!
0
 
LVL 14

Expert Comment

by:mcrider
ID: 2742337
Thanks for the points! Glad I could help!


Cheers!®©
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question