Jump to content


Photo

(SOLVED)How to change filetype association?


  • Please log in to reply
5 replies to this topic

#1 q123

q123

    Member

  • Members
  • PipPip
  • 28 posts
  • OS:non-selected

Posted 23 August 2009 - 02:33 PM

hi 

i would like to know is there another way  to change the  filetype association   :g: by default on to my unattended xp cd 

 (not by properties of that file i.e open's with option )

example i would like to open all my .mp3,.mkv,.mp4,.flv,.avi,.vob .....etc  with some app like Mplayer/ some other app 

Edited by q123, 28 August 2009 - 12:30 PM.


#2 DaRk MaDnEsS

DaRk MaDnEsS

    Live Free or Die Hard

  • Contributors
  • 971 posts
  • Location:Some where out computer
  • OS:Windows 7

Posted 23 August 2009 - 03:47 PM

hi 

i would like to know is there another way  to change the  filetype association  :g: by default on to my unattended xp cd 

 (not by properties of that file i.e open's with option )

example i would like to open all my .mp3,.mkv,.mp4,.flv,.avi,.vob .....etc  with some app like Mplayer/ some other app 


mmm ok here is an easy way

first install "Install Watch"

or any program that takes a snap at the registry

then take a first snap before making any changes

then sign all the types you want to the program you want

by the way you mention it

then retake another snap and you will find the needed registry

that is it.
  • Mr.Thunderbird and q123 like this

#3 q123

q123

    Member

  • Members
  • PipPip
  • 28 posts
  • OS:non-selected

Posted 24 August 2009 - 04:50 AM

Thanx for reply

then sign all the types you want to the program you want




the program i use is an  portable one and it doesn't ask me to associate to file 

can any one give me a sample .reg file to associate particular file types with that  Mplayer app



#4 q123

q123

    Member

  • Members
  • PipPip
  • 28 posts
  • OS:non-selected

Posted 24 August 2009 - 04:35 PM

:albert:  after seeing some .reg files in my registry i made some thing like this   :rolleyes:



Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.abc]
@="Mplayer"

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Mplayer]
@="abcfile type"


[HKEY_CLASSES_ROOT\Mplayer\shell]

[HKEY_CLASSES_ROOT\Mplayer\shell\open]

[HKEY_CLASSES_ROOT\Mplayer\shell\open\command]
@="\"C:\\Program Files\\Mplayer\\MPlayer.exe\""



with that i was able to open my .abc with mplayer by default  :dancing:



  :blush:  my questions are:

1.Is it right or need to change the code

2.what if i need to associate the app with .dat,.vob,.mp4 .....etc create a reg file for all the types 

Edited by q123, 24 August 2009 - 04:36 PM.


#5 DaRk MaDnEsS

DaRk MaDnEsS

    Live Free or Die Hard

  • Contributors
  • 971 posts
  • Location:Some where out computer
  • OS:Windows 7

Posted 24 August 2009 - 05:08 PM

:albert:  after seeing some .reg files in my registry i made some thing like this   :rolleyes:






with that i was able to open my .abc with mplayer by default  :dancing:



  :blush:  my questions are:

1.Is it right or need to change the code

2.what if i need to associate the app with .dat,.vob,.mp4 .....etc create a reg file for all the types 


well just

this line Windows Registry Editor Version 5.00

is duplicated remove the second one

and to make it working for types like dat vob etc
[HKEY_CLASSES_ROOT\.abc]
@="Mplayer"

[HKEY_CLASSES_ROOT\Mplayer]
@="abcfile type"
you need to make this for each one of them

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.abc]
@="Mplayer"

[HKEY_CLASSES_ROOT\Mplayer]
@="abcfile type"

[HKEY_CLASSES_ROOT\Mplayer\shell\open\command]
@="\"C:\\Program Files\\Mplayer\\MPlayer.exe\""

you will only make the first two section for every type

and in the third one the destination for MPlayer.exe

you can change it with this
[HKEY_CLASSES_ROOT\Mplayer\shell\open\command]
@="\"%ProgramFiles%\\Mplayer\\MPlayer.exe\""
so it works with any program files
  • q123 likes this

#6 q123

q123

    Member

  • Members
  • PipPip
  • 28 posts
  • OS:non-selected

Posted 25 August 2009 - 04:14 PM

:wub_anim: thanx alot for your support



hmmm to open that file.dat in that Mplayer the working commmand is

[HKEY_CLASSES_ROOT\Mplayer\shell\open\command]
@="\"%ProgramFiles%\\Mplayer\\MPlayer.exe\""%1\""



else just player is opened nothing happens


Edited by q123, 25 August 2009 - 04:39 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users