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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"ShellExecute" equivalent for more than 1 file ?

Status
Not open for further replies.

schbounz

Programmer
Aug 25, 2002
11
FR
Hi all, I'm new on this forum, and I need your help ;-)

In an app I'm developping, I need to open many files at once, just like Explorer does when you select n files of the same type (fi : mp3 files) and right-click "open" (==> they're all played in winamp)

Using ShellExecute works quite well, but with only one file at once :-( : If I run ShellExecute for each mp3 file, as a result only the last one is played in winamp (just like if you right click open on each mp3 file in Explorer).

==> I need a "ShellExecute" equivalent method but which would take many files at once.

Thanks for your help


 
If your MP3 are all in the same directory, you can load the entire directory in wimap using the command line.
 
Also related to ShellExecute,

I having a test program launching notepad.exe .... but it displays a command window before launching the notepad. is there a way to get rid of that command window and just launch notepad.

by the way, i intend to execute another .exe program but am using notepad as a test-bed.

Thanx.
 
>
> If your MP3 are all in the same directory,
> you can load the entire directory in wimap
> using the command line.
>

My aim is not to use winamp, it was just an example. It appears that if you "open" n>1 mp3 files, they all go into your winamp.

==> I want a method like ShellExecute which could take more than one file as argument, and would open them using the appropirate application, exactly just like windows explorer would do if the user selects the files and double-click on the selection.

 
+ I dont want to use the command line, I want to do exactly like windows explorer does

Thanks for your help ;-)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top