Solved

Open with my application

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now