I need to write a script that determines whether or not uTorrent is currently downloading something. I'd rather it just be downloading, but if I cannot differentiate between downloading and uploading then it would be better than nothing.

One possible way would be check the whether any files ending in .!ut are locked - but I'm hoping for something a little more elegant.

My weapon of choice is VBScript but I'm happy to use DOS commands if needs be.

Any suggestions, recommendations or pointers would be appreciated.

link|improve this question

78% accept rate
4  
You may be interested in the uTorrent API. :) – iglvzx Nov 29 '11 at 22:16
feedback

1 Answer

up vote 1 down vote accepted

To elaborate on iglvzx's comment, you can use uTorrent's Web API to get a list of active torrents. To use the API, all you have to do is enable it in the settings. Then, it's a simple HTTP GET call - can be to local host if your script runs on the same machine.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.