Solved

Open with my application

Posted on 2000-04-23
5
130 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 100 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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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
Course of the Month5 days, 8 hours left to enroll

626 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