Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Associating Files

Posted on 2003-03-16
Medium Priority
Last Modified: 2010-05-01
I have a question while we are on the topic.  How is it that you get you app to associate with the file type ... hmmmmm (for give me I'm a n00b).

For instance, when I open a given file type in explorer, how does my program know what exactly to do with that file?

Now I know how to work with FSO and all that.  I'm just having trouble with the association part.
Question by:lillockey

Expert Comment

ID: 8147235
Your program receive the filename in it's Command function.
Put that line in your program to read the Filename.
CmdLine = Command()
LVL 16

Accepted Solution

Richie_Simonetti earned 375 total points
ID: 8147266

Author Comment

ID: 8277216
Eh ... good enough for my purposes.  Thx

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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…
Suggested Courses
Course of the Month14 days, 3 hours left to enroll

580 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