REGEDIT4

; all lines beginning ";" are comments

;
; torrent.reg
; ----------------
; this provides a handy concept menu so
; you can test the various clients and
; their rapid development without having
; to sacrifice any of the others.
;
; if you are new to concept-menu hacking,
; feel free to use this as a templete for
; your own menu hacks. I'll include notes.
; make a sorta "short course in concept menu hacking"
;
; I've got a good few years worth of reg hacks
; and tweaks, concept menu's a speciality.
; mail me if your looking for something.
; you can get me here: <corz@how.to>
;
; it really makes all the difference, having
; a dozen choices for "jpg" files, for instance.


;
; IMPORTANT!
; -------------
; you'll need to adjust the paths to match
; wherever you installed the various clients
; 
; alternatively: 
; create this neat directory structure..
;
; C:\Program Files\net tools\p2p\
; 
; .. and drop this whole folder into that
; location instead!
;


; note.
; like unix, a backslash means "take the next
; character literally". that's what all the double-
; backslash business is about. If you paste a path 
; from explorer (maybe with the excellent powertoy
; "Clipboard as Name" - a shortcut on the desk
; will become like a dear friend, anyway..) you'll
; need to add this, ie \ becomes \\
; " becomes \"
;
;
; as from windows 2000, shell entries are alphabetical
; that's why we are numbering the entries. at last!
; 

; okay, here goes
; the actual reg entries 
;-----------------------
;


; first we setup the file extension..
; part 1 of 2 of the process.

; the HKEY_CLASSES_ROOT branch holds all the file
; extensions at the top, and all their associated
; commands at the bottom.


; top bit

[HKEY_CLASSES_ROOT\.torrent]
@="bittorrent"
"Content Type"="application/x-bittorrent"

; which points to..


; bottom bit (the main bit)


; File Type.
;
; this is what is displayed in Explorer's
; "Properties" dialog.

[HKEY_CLASSES_ROOT\bittorrent]
@="BitTorrent File"


; this entry tells windows which will be the 
; default (bold) entry. in this case; \shell\open

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

; now the command itself
;

; what will appear in the menu..
[HKEY_CLASSES_ROOT\bittorrent\shell\open]
@="shadow's torrent client"

; command windows will perform..
[HKEY_CLASSES_ROOT\bittorrent\shell\open\command]
@="\"C:\\Program Files\\net tools\\p2p\\BitTorrent\\btdownloadgui.exe\" --responsefile \"%1\""


; this next command will add an "Examine" entry, ie. notepad.
; only occasionally useful, but it gives you the idea.
; note we don't have a menu naming line here, the one in the
; path is automatically assumed unless we over-ride it.
; in other words; "examine" is just fine!
;
; note, although this is here, it will be placed at the end
; in the menu (Win2k&XP)


; ............... windows uses this -\   /- for the menu
;                 unless we over    - \ / - ride it           
;                                      V
[HKEY_CLASSES_ROOT\bittorrent\shell\examine]
; this line is left intentionally blank!

[HKEY_CLASSES_ROOT\bittorrent\shell\examine\command]
@="notepad.exe %1"

; we don't need to specifiy the complete path to notepad; 
; it's in your %PATH; so windows will find it. For some folks it's
; c:\\windows\\ for others c:\\winnt\\ so this is a better way.


; open in maketorrent
;
; the wee "&" symbol before the M makes it underlined in the
; concept menu, so you can use keyboard navigators to get to it.

[HKEY_CLASSES_ROOT\bittorrent\shell\1.maketorrent]
@="&MAKE Torrent"

[HKEY_CLASSES_ROOT\bittorrent\shell\1.maketorrent\command]
@="\"C:\\Program Files\\net tools\\p2p\\bt-make\\maketorrent.exe\"%1\""


; numbering the entries is now a neat idea, keeps the menu ordered
; in whatever way you prefer. If you need to put something
; in-between 1 and 2 later on, you can use 11, 12, 13, etc.


; use experimental client fork one
;
[HKEY_CLASSES_ROOT\bittorrent\shell\2.openEXP]
@="experimental 1"

[HKEY_CLASSES_ROOT\bittorrent\shell\2.openEXP\command]
@="\"C:\\Program Files\\net tools\\p2p\\bt-forkone\\btdownloadgui.exe\" --responsefile \"%1\""



; use new nova client
;

[HKEY_CLASSES_ROOT\bittorrent\shell\3.nova]
@="cheeky Nova"

[HKEY_CLASSES_ROOT\bittorrent\shell\3.nova\command]
@="\"C:\\Program Files\\net tools\\p2p\\bt-nova\\Nova.exe\"%1\""


; use PTC client
;

[HKEY_CLASSES_ROOT\bittorrent\shell\4.ptc]
@="PTC client"

[HKEY_CLASSES_ROOT\bittorrent\shell\4.ptc\command]
@="\"C:\\Program Files\\net tools\\p2p\\bt-ptc\\PTC.exe\"%1\""


; use burst
;
[HKEY_CLASSES_ROOT\bittorrent\shell\5.burst]
@="burst it!"

[HKEY_CLASSES_ROOT\bittorrent\shell\5.burst\command]
@="\"C:\\Program Files\\net tools\\p2p\\bt-burst\\btdownloadheadless.exe\"%1\""



; check out in torrentspy
;

[HKEY_CLASSES_ROOT\bittorrent\shell\6.torrentspy]
@="TorrentSpy 8)"

[HKEY_CLASSES_ROOT\bittorrent\shell\6.torrentspy\command]
@="\"C:\\Program Files\\net tools\\p2p\\bt-spy\\TorrentSpy.exe\" \"%1\" %*"



; shareaza does torrents too, you know!
;

[HKEY_CLASSES_ROOT\bittorrent\shell\7.shareaza]
@="Shareaza"

[HKEY_CLASSES_ROOT\bittorrent\shell\7.shareaza\command]
@="\"C:\\Program Files\\net tools\\p2p\\Shareaza\\Shareaza.exe\" \"%1\""

; if shareaza has already registered itself as the default torrent
; client (it does this by default *grrr* you'll need to go into the
; registry and delete it's daft ddexec part of your default entry, 
; looks like this..

[HKEY_CLASSES_ROOT\bittorrent\shell\7.shareaza\ddeexec]
@="%1"

[HKEY_CLASSES_ROOT\bittorrent\shell\7.shareaza\ddeexec\Application]
@="Shareaza"

[HKEY_CLASSES_ROOT\bittorrent\shell\7.shareaza\ddeexec\Topic]
@="TORRENT"

; shareaza will reassociate itself on every launch unless you turn it off
; in the shareaza prefs..
; 				Tools >> Settings >> General >> Web


; lastly, an icon..

; i altered this so if you drop this whole lot into your freshly made
; c:\Program Files\net tools\p2p\ folder, it will work without 
; modification. cool huh.

[HKEY_CLASSES_ROOT\bittorrent\DefaultIcon]
@="c:\\Program Files\\net tools\\p2p\\corz.torrent.addons\\bittorrent.icons\\torrrent.ico"



; for a version without these notes see 
; "bt.concept-hack.bare.reg"


;o)
