PC Review


Reply
Thread Tools Rate Thread

change file associations in commandline

 
 
seb@willemijns.com
Guest
Posts: n/a
 
      2nd May 2007
hi,

how to easily destroy and change file associationin commandline under
XP ? using "ftype" and "assoc" does not works well...

thanks of your answers...
 
Reply With Quote
 
 
 
 
Jack Doyle
Guest
Posts: n/a
 
      2nd May 2007
(E-Mail Removed) wrote:
> hi,
>
> how to easily destroy and change file associationin commandline under
> XP ? using "ftype" and "assoc" does not works well...
>
> thanks of your answers...


The only thing I could find was what you had already mentioned, ftype
and assoc.

Their usage is outlined here: http://www.jsifaq.com/SF/Tips/Tip.aspx?id=0108


--

Jack Doyle, Systems Engineer
ScriptLogic Corporation
http://www.scriptlogic.com
 
Reply With Quote
 
Bob I
Guest
Posts: n/a
 
      2nd May 2007
Please review "assoc" in Windows Help and support for the correct usage.

(E-Mail Removed) wrote:

> hi,
>
> how to easily destroy and change file associationin commandline under
> XP ? using "ftype" and "assoc" does not works well...
>
> thanks of your answers...


 
Reply With Quote
 
theplectrum
Guest
Posts: n/a
 
      2nd May 2007
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> hi,
>
> how to easily destroy and change file associationin commandline under
> XP ? using "ftype" and "assoc" does not works well...
>
> thanks of your answers...
>


Er, what exactly are you trying to do ?

If its to change the software that opens a particular type of file - for
example from WinAmp to WMP - then you just need to right click on aq file
(for example an mp3 file) and choose "Open With" from the drop down menu and
make sure Always Open With is checked. Same goes for any type of file you
want to associate with a programme.

Methinks you're trying to do something the hard way, either that or I've
missed the bus.

Cheers,
Jerry


 
Reply With Quote
 
=?Utf-8?B?Qnl0ZQ==?=
Guest
Posts: n/a
 
      3rd May 2007
Maybe the below will be of some help.
Windows XP File Assocation Fixes
http://www.dougknox.com/xp/file_assoc.htm
--
XP - WNP
Today is the first day of the
rest of your life.



"(E-Mail Removed)" wrote:

> hi,
>
> how to easily destroy and change file associationin commandline under
> XP ? using "ftype" and "assoc" does not works well...
>
> thanks of your answers...
>

 
Reply With Quote
 
sebastien@willemijns.com
Guest
Posts: n/a
 
      8th May 2007
On 3 mai, 17:34, Byte <B...@discussions.microsoft.com> wrote:
> Maybe the below will be of some help.
> Windows XP File Assocation Fixeshttp://www.dougknox.com/xp/file_assoc.htm


sorry for the late answer, i have tried more than 20 stupid solutions
(and the same number of GHOST imagefile to restore lol) since these
days and now i have found what i want... i can change my file
association in any case

in fact file association under windows XP depends of mime associations
and extension file so to force it to launch what you want they are 3
solutons (not of all can works, i think third works in all case)

1) force path and application filename you want instead of default
file association

ftype IrfanView.mp3="e:\mplayer\mplayer.exe" "%%1"
ftype IrfanView.ogg="e:\mplayer\mplayer.exe" "%%1"
ftype IrfanView.wav="e:\mplayer\mplayer.exe" "%%1"

2) classical assoc and ftype function

assoc .mp4=ztemp1
ftype ztemp1="e:\mplayer\mplayer.exe" "%%1"

3) the registry method, use this hack to simulate "open with"
explorer.exe right click option

****************************************************************
file.reg
REGEDIT4

[HKEY_CURRENT_USER\Software\Classes]

[HKEY_CURRENT_USER\Software\Classes\Applications]

[HKEY_CURRENT_USER\Software\Classes\Applications
\fake_vivilproject_fileextension1.exe]

[HKEY_CURRENT_USER\Software\Classes\Applications
\fake_vivilproject_fileextension1.exe\shell]

[HKEY_CURRENT_USER\Software\Classes\Applications
\fake_vivilproject_fileextension1.exe\shell\open]

[HKEY_CURRENT_USER\Software\Classes\Applications
\fake_vivilproject_fileextension1.exe\shell\open\command]
@="\"E:\\mplayer\\mplayer.exe\" -playlist \"%1\""

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer
\FileExts\.m3u]
@=""
"Application"="fake_vivilproject_fileextension1.exe"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer
\FileExts\.pls]
@=""
"Application"="fake_vivilproject_fileextension1.exe"
*******************************************************************************************************









 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
change file associations in commandline seb@willemijns.com Windows XP Music 2 8th May 2007 10:17 AM
change file associations in commandline seb@willemijns.com Windows XP Video 2 8th May 2007 10:17 AM
Change File Associations?? William Robertson Windows XP Basics 12 26th Sep 2005 06:40 AM
Cannot Change File Associations Doreen Microsoft Windows 2000 File System 1 25th Feb 2005 03:56 AM
I can't change file associations?!?! =?Utf-8?B?amtlbm5lZHkzMTg=?= Microsoft Windows 2000 Terminal Server Applications 1 8th Dec 2004 04:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:27 PM.