Rico.JohnnY Posted September 20, 2004 Share Posted September 20, 2004 i want to know how can i associate media types with the specified media player?i.e.if i want to use winamp as the default player for *.mp3, WinDVD for DVD and WMP10 only for *.wma how can i implement that?any suggestion appreciated! Link to comment Share on other sites More sharing options...
XtremeMaC Posted September 20, 2004 Share Posted September 20, 2004 easiest way i'd say is to export your current registry (if u like the way they are right now) then import them when setup'ingso go to these values in your regeditHKEY_CLASSES_ROOT\.WMAHKEY_CLASSES_ROOT\wmafileHKEY_CLASSES_ROOT\.MP3HKEY_CLASSES_ROOT\mp3fileHKEY_CLASSES_ROOT\DVD Link to comment Share on other sites More sharing options...
sleepnmojo Posted September 20, 2004 Share Posted September 20, 2004 What you want to do is go to your HKEY_CLASSES_ROOT (HKCR) section of your registry.What you want to do is go to the extension of the file you are looking at. For example .mp3, go to .mp3. What you want to do is associate that to a program. If you look under the default section of .mp3 you will find mp3file. I would change this to Winamp.File, or so other naming convention you choose. Do this for each extension you want associated with Winamp.Now add a Winamp.File registry key under HKCR. Under the Winamp.File you are worried about two things here. The icon, and the opening command. For the icon, add a DefaultIcon key under Winamp.File. Under the default section, add the path to the icon, and index, if any. For the command to open, you will need to add a Shell key under Winamp.File, followed by and Open, then by a command. Under the default section of the Command, is where you put your command to execute. It should default to open. If you have other commands, such as enqueue, which you want as default, under the shell key, you should set the default section to enqueue.The best way to get an understanding of this is by looking at the other registry keys.Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\.mp3]@="Winamp.File"[HKEY_CLASSES_ROOT\Winamp.File][HKEY_CLASSES_ROOT\Winamp.File\DefaultIcon]@="C:\\Program Files\\Winamp\winamp.exe,11"[HKEY_CLASSES_ROOT\Winamp.File\shell]@="Enqueue"[HKEY_CLASSES_ROOT\Winamp.File\shell\open][HKEY_CLASSES_ROOT\Winamp.File\shell\open\command]@="\"C:\\Program Files\\Winamp\winamp.exe\" \"%1\""[HKEY_CLASSES_ROOT\Winamp.File\shell\Enqueue][HKEY_CLASSES_ROOT\Winamp.File\shell\Enqueue\command]@="\"C:\\Program Files\\Winamp\winamp.exe\" /ADD \"%1\""There is still a lot more to it, but this is the jist of it. Hope this helps. Link to comment Share on other sites More sharing options...
Rico.JohnnY Posted September 21, 2004 Author Share Posted September 21, 2004 cheers...it does work,thanks for both suggestion Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now