Auto insurance
C:\>type "TorrentShuttle.txt" | more

TorrentShuttle might be the lamest C# program ever written. But it fills a very specific need.

I always hated how, normally, when you download (completely legal) .torrent files from a (completely reputable) site, your bittorrent client usually opens, and you have to click OK in a dialog to actually start the torrent downloading.

A much simpler way is to have your client monitor a "hot folder." When new .torrent files are placed into this hot folder, it'll automatically download them without prompting for anything.

TorrentShuttle handles the .torrent filetype and automatically shuttles the torrent to a directory of your choosing - your torrent client's hot directory. This hot directory can be a network path, so with a little VPN kung-fu, you can throw torrent files from the netbook you're using at a coffeeshop, to your server back at home, and it'll automatically start downloading.

>>> DOWNLOAD EXE NOW <<<

>>> DOWNLOAD C# SOURCE CODE NOW <<<

Installation instructions:

  1. Download and unzip to C:\Program Files\TorrentShuttle (or anywhere).
  2. Choose a location for your hot folder. Tell Azareus to monitor this folder for torrents. (Tools, Options, Files, Torrents.) Azareus config
  3. Run TorrentShuttle.exe. It will prompt you for the location of Azareus's hot folder. Close it.
  4. Tell firefox that it should use TorrentShuttle to open files of type torrent. You'll find this option in Tools pulldown menu, Options, Content tab, Manage... file types button.

change action dialog

I use a program called Hamachi to create a secure network that both my desktop and laptop are on. There are several cool things about Hamachi: first, it's secure, and traffic is encrpyted. It's also really good at getting through firewalls, and it'll use a fast, direct connection when your two PCs are on the same local network. Highly recommended.
If you have multiple PCs:

  1. Go through the above steps on your desktop PC.
  2. Share the hot folder on your desktop PC as torrentDrop.
  3. Install Hamachi on your desktop and laptop, and get them on the same network. Note your desktop's Hamachi IP (should be 5.x.x.x).
  4. On your laptop, map a network drive to the hot folder. For example my laptop maps drive T:\ to \\<myDesktopsHamachiIP>\torrentDrop.
  5. Run torrentShuttle and configure T:\ as the drop location.
  6. Enjoy.

The code itself is mindbogglingly complex:

  • Read the ShuttleConfig.txt file to get the name of the hot folder.
  • Get the full path of the .torrent file from the command line (thanks firefox!)
  • Use System.IO.File.Move() to move the torrent file.