Solved

Open with my application

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…

860 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