Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using "Open With" from Explorer 1

Status
Not open for further replies.

foten

IS-IT--Management
Aug 26, 2006
3
GB
Hi all, I have an application that plays mp3 files and I can mix 3 "decks" plaing 3 mp3's. A bit like a dj program.

What I would like to do is when you go into windows explorer/my computer and you find a mp3 file, I want to associate my player with the mp3 extension.

I know that the first time you can right click and use the "OPEN WITH" to select your program. My question is as follows....

When my program is fired up will the parameter (ie the file path and file name) be picked up in the cmd string?

A second question continuing on from this is that once my program is running and has loaded the selected file, if another mp3 is double clicked from explorer, how will my program recieve the new file information???

Let me make this clear, if you are a bit confused.. With media player, you double click a file in explorer and media player starts and plays the track. Double click a second in explorer and media player adds it to the playlist - ie a second media player is not started.

I have tried searching your listings in case this problem has been raised before but I have not found anything suitable.

Many thanks

Foten
 
Double-clicking the associated file in Windows Explorer will fire your application with full filename in command line. That command line string can be queried using the [tt]Command$[/tt] function. See VB documentation for more help on this function.

For second part of your question, see thread222-616828.
 
Many thanks, have a star!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top