devxlogo

Starting Application Through File Manager

Starting Application Through File Manager

Question:
What do I have to do to make my application respond to a file-kickstart (double-click)in file-manager? When I select and associate a specific file type with my application it only executes my app without opening the specific file.

Answer:
Within the starting subroutine of your application (either Form_Load of the start up form, or Sub Main() ), you need to look at Command$ to see what was on the command line of the application. For instance, if the user starts your app from File Manager by double clicking on an associated file, that filename will be on the command line. You can use Command$ to figure out what to do first.

See also  Professionalism Starts in Your Inbox: Keys to Presenting Your Best Self in Email
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist