Tuesday, May 30, 2006

Monday, May 29, 2006

Windows Registry knowledge

I stumbled across this little bit of knowledge in my desire to make playing MP3's easier in my house. We have a centralized computer dedicated to playing music, and we access it via Remote Desktop, but this can be slow to connect, and when you want to play something you don't wanna wait 30 seconds to connect to the machine and then select songs. So the idea was to add something to the Explorer Context menu that will run my own app to communicate to the remote machine and queue songs in Winamp.

This page learned me up good on something that is super simple, but super useful. If you don't wanna read it, I'll give you the gist. By adding a couple of registry keys in the right place, you can modify the Explorer Context menu. So if you modify the .MP3 extension you can add a menu item like "Play in Remote Winamp" and have it execute something that will do something useful (that's the fun part). But the free part of it is the "%1" arguement. Windows will forward along the file or files that you have selected in Explorer. This is a nice little bonus, and saves you from having to develop any UI.

http://www.logicalexpressions.com/vbtip03.htm