Open with my application

Posted on 2000-04-23
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?
Question by:points
  • 3
  • 2
LVL 14

Expert Comment

ID: 2742287

Create file Associations 

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

   Dim X As String
   X = Command

LVL 14

Accepted Solution

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

HOWTO: Associate a File Extension with Your Application (Win32) 


Author Comment

ID: 2742305
Adjusted points from 50 to 100

Author Comment

ID: 2742306
That was fast.
You get more points!
LVL 14

Expert Comment

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


Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Pull multiple cvs files into one access table 28 68
VBA filters 2 62
Convert VB6 MSXML2.ServerXMLHTTP process to C# 2 48
TT Auto Dashboard 13 92
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

821 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