Page 1 of 1
Add to windows media player
Posted: 20 Dec 2011 01:36
by Zephyr
Hey guys,
I have a folder with lots of music in it, and it's divided into subfolders based on artists or whatever.
In windows explorer, if I right-click the very top folder that contains all the music, there's an option to add to windows media player and it plays. Note that the view I like is the one with the weird image that conforms to the music, rather than the library view. I don't want to add the music to my library. Maybe it's called playlist view?
Either way, that button isn't there in XYPlorer, one of the things keeping me from making it my default shell.
I thought that flatview might help because I could simply look at all the mp3 files, but flat view doesn't even have the add to playlist button.
(There's two add to playlist buttons in windows explorer, the one that appears when right-clicking a folder, and one that appears when selecting music).
I've tried adding WMP to the catalog and running the music with that, but it runs in the library view and adds it to my library.
Is there a parameter that runs WMP in the view that I like it? I couldn't find an exe for that view. Or is there any way I can, from the father folder, run all the music in all of the subfolders?
Thanks for your time and the great product,
~Zephyr
Re: Add to windows media player
Posted: 20 Dec 2011 02:05
by nas8e9
Hi and welcome,
The command line for Windows Media Player to just play the file seems to be this:
Code: Select all
C:\Program Files (x86)\Windows Media Player\wmplayer.exe /Play
As for integration, I have trouble locating what you currently use in Windows Explorer. Could you post a screenshot of Windows Explorer with the menu/button whose functionality you want replicated in XYplorer?
Re: Add to windows media player
Posted: 20 Dec 2011 02:13
by Zephyr
Hmmm... I'm on a different computer here and I can't seem to find that same option I have on the other computer. I'll get you a screenshot of the one with XYPlorer installed on it as soon as possible. (Probably Tuesday)
How would I use the /Play thing in the catalog?
Re: Add to windows media player
Posted: 20 Dec 2011 02:46
by nas8e9
Zephyr wrote:Hmmm... I'm on a different computer here and I can't seem to find that same option I have on the other computer.
This may explain why we both can't find it?
Zephyr wrote:How would I use the /Play thing in the catalog?
The good news is that the SuperUser-trick linked to above, causes the WMP-commands to be added to the shell context menu, meaning they become available in XYplorer as well. Case closed?

Re: Add to windows media player
Posted: 20 Dec 2011 02:48
by serendipity
Using /Play in XY will play only the focused file. To play all selected items, use this (from Catalog/Address bar) instead:
Code: Select all
::openwith """C:\Program Files\Windows Media Player\wmplayer.exe"" <items>";
Re: Add to windows media player
Posted: 20 Dec 2011 02:52
by serendipity
nas8e9 wrote:The good news is that the SuperUser-trick linked to above, causes the WMP-commands to be added to the shell context menu, meaning they become available in XYplorer as well. Case closed?

This is a great tip. Thanks!
Re: Add to windows media player
Posted: 20 Dec 2011 02:55
by nas8e9
serendipity wrote:Using /Play in XY will play only the focused file. To play all selected items, use this (from Catalog/Address bar) instead:
Code: Select all
::openwith """C:\Program Files\Windows Media Player\wmplayer.exe"" <items>";
Unfortunately, WMP doesn't seem to accept just folders as the OP wants (specifically the top folder of his music tree structure). A quick Google search for WMP's command line options didn't find what the context menu command uses to add just folders to WMP.
Edited to add: @serendipity: Missed your last post, sorry.
Re: Add to windows media player
Posted: 20 Dec 2011 03:17
by serendipity
nas8e9 wrote:serendipity wrote:Using /Play in XY will play only the focused file. To play all selected items, use this (from Catalog/Address bar) instead:
Code: Select all
::openwith """C:\Program Files\Windows Media Player\wmplayer.exe"" <items>";
Unfortunately, WMP doesn't seem to accept just folders as the OP wants (specifically the top folder of his music tree structure). A quick Google search for WMP's command line options didn't find what the context menu command uses to add just folders to WMP.
Edited to add: @serendipity: Missed your last post, sorry.
Yeah, thats right, it would work only for files i guess. But with XY scripting it should be possible.
Re: Add to windows media player
Posted: 20 Dec 2011 03:20
by Zephyr
I like both replies
I can use the catalog command to make the process of adding to playlist a lot quicker, and I can use the original answer for what I usually do.
By the way, to get that option in XYPlorer, I guess I would have to make it my default shell, right? Cause currently my music folder is optimized for music, and right-clicking it in XYPlorer doesn't have that option. I'll try making it my default shell.
How do I do that again :O
Re: Add to windows media player
Posted: 20 Dec 2011 10:27
by nas8e9
Zephyr wrote:By the way, to get that option in XYPlorer, I guess I would have to make it my default shell, right? Cause currently my music folder is optimized for music, and right-clicking it in XYPlorer doesn't have that option. I'll try making it my default shell.
How do I do that again :O
Fortunatelly not: once you set the folder type to Music through Windows Explorer, that folder and those below it (if you check the option to apply the template to all subfolders) will have WMP's commands added to its context menu. XYplorer then inherits this context menu.
WE and XYplorer share this facility.
Re: Add to windows media player
Posted: 20 Dec 2011 22:07
by serendipity
Zephyr wrote:
I can use the catalog command to make the process of adding to playlist a lot quicker, ...
You can use this script from catalog:
http://www.xyplorer.com/xyfc/viewtopic. ... 051#p67051