Tuesday, December 30, 2008

Fix .torrent file associations

When I tried to get a BF2 Mod with .torrent I found that I could not force it to open in uTorrent. If you have this problem please read on.

Step 1: Press and hold the windows key on your keyboard, then press the R key. Type regedit in the box and press enter. Expand HKEY_CLASSES_ROOT and delete .torrent and uTorrent (if you were running any other torrent clients delete the key in here as well). Exit out of regedit.

Step 2: Right click your torrent file and make it open with wordpad.

Step 3: Double click the torrent file and make sure it's opening in wordpad.

Step 4: Right click on the Desktop and go to New -> Text Document. Open the text document and copy and paste this into it:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.torrent]
@="uTorrent"

[HKEY_CLASSES_ROOT\.torrent\OpenWithProgids]
"uTorrent"=""

[HKEY_CLASSES_ROOT\uTorrent]

[HKEY_CLASSES_ROOT\uTorrent\shell]
@="open"

[HKEY_CLASSES_ROOT\uTorrent\shell\open]

[HKEY_CLASSES_ROOT\uTorrent\shell\open\command]
@="\"C:\\Program Files\\uTorrent\\uTorrent.exe\" \"%1\""

Step 6: Exit out of notepad and rename "New Text Document.txt" to "fix.reg".

Step 7: Find a torrent file, right click it, and make it open with uTorrent again. (The uTorrent executable is located in "C:\Program Files\uTorrent\uTorrent".

Step 8: Double click the torrent file and see if it properly opens in uTorrent.

You can also do this with any other association. For instance if you wanted to make the default program for a .wav file VLC, do this:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.wav]

[HKEY_CLASSES_ROOT\.wav\shell]
@="open"

[HKEY_CLASSES_ROOT\.wav\shell\open]

[HKEY_CLASSES_ROOT\.wav\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" \"%1\""

If you have problems post a comment and I will try and help you out.