Hey,
I'm creating a kind of 'playlist manager' application where the user can create his own music playlist and then play it from my application. However, I don't want to give my application any playback features itself, as there are already so many media players around. Instead, I just want to open the files in the current playlist in the media player of the user's choice.
I have a list of MP3 files (their filenames), how do I now open these files simultaneously in, for example, Windows Media Player?
I can get it to play one song, using this command (and Process.Start)
But I cannot get it to play multiple songs... I tried just listing all the songs in the arguments, separated by a comma or semicolon or... anything I could think of, but nothing worked. It just plays the first song in the list and nothing else.Code:wmplayer.exe /play "D:\Music\Artist\Song1.mp3"
Surely this must be possible? You can open multiple files in windows itself simply by selecting them and opening them at the same time. I'm pretty sure the filenames of the selected files will then be in the arguments of wmplayer so that it can open them, but I just don't know in what format... Can I see this somehow?Code:wmplayer.exe /play "D:\Music\Artist\Song1.mp3","D:\Music\Artist2\Song3.mp3","D:\Music\Artist43\Song23.mp3"
Thanks!




Reply With Quote