Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Open with my application

Posted on 2000-04-23
5
Medium Priority
?
135 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
  • 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

916 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