Open file with associated app

  • Thread starter Thread starter Doug Bell
  • Start date Start date
D

Doug Bell

Hi,

I can probably use "Shell" function to open an app with a switch to open a
selected file.

But is it possible to read the application that a file type has been
associated with to determine which application name to pass to the "Shell"
function?

I am trying to emulate the user double clicking on a file selected in
Explorer.
My VB.Net does not know which file or file type will be selected.

Or is there another approach.

Thanks

Doug
 
Hi,

If you use process.start("YourFile") it will open it up in the
program associated with that file extension.

Ken
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top