View Single Post
  #2 (permalink)  
Old 23rd February 2006
J7N's Avatar
J7N J7N is offline
Senior Member
BS.Player Power User
 
Join Date: Feb 2006
Location: Cyberspace
Posts: 762
Rep Power: 0
J7N is an unknown quantity at this point
Default

You can always associate files with programs the other Windows way: using Windows registry! That's the only method I ever use.

Here is an example of associating *.vob extension to be opened with either BSPlayer, VideoLAN or Windows Media, and displaying a custom icon "video_mg.ico". The paths will be different on your system, of course.

Code:
REGEDIT4

;; the extension to associate
[HKEY_CLASSES_ROOT\.vob]
;; file type, shortly describing the contents
@="ZZ_mpeg_video"

[HKEY_CLASSES_ROOT\ZZ_mpeg_video]
;; custom type string, not mandatory
@="Motion Pictures Experts Group video"

[HKEY_CLASSES_ROOT\ZZ_mpeg_video\DefaultIcon]
;; icon to use
@="c:\\icons\\video_mg.ico,0"

[HKEY_CLASSES_ROOT\ZZ_mpeg_video\shell]
;; default application
@="mplayer2"

[HKEY_CLASSES_ROOT\ZZ_mpeg_video\shell\bsplayer]
;; name which will appear when right clicking on VOBs
@="• BSPlayer"

[HKEY_CLASSES_ROOT\ZZ_mpeg_video\shell\bsplayer\command]
;; the path to bsplayer executable
@="d:\\apps\\bsplayer\\bsplayer.exe \"%L\""

[HKEY_CLASSES_ROOT\ZZ_mpeg_video\shell\mplayer2]
@="• Windows Media"

[HKEY_CLASSES_ROOT\ZZ_mpeg_video\shell\mplayer2\command]
@="mplayer2.exe \"%L\""

[HKEY_CLASSES_ROOT\ZZ_mpeg_video\shell\vlc]
@="• VideoLAN Client"

[HKEY_CLASSES_ROOT\ZZ_mpeg_video\shell\vlc\command]
@="d:\\apps\\vlc\\vlc.exe \"%L\""
Reply With Quote
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20