Statikk Posted October 1, 2011 Report Share Posted October 1, 2011 I'm having trouble figuring this out. I'm a newb to more advanced batch files. If someone could just give me an example command line which would be entered in the "Run this program when a torrent finishes:" box and the batch file run by that command line which takes the %L parameter that I'm supposed to pass from uTorrent and either matches it to specified label name and launches notepad.exe or if it doesn't match just exits. I should be able to figure out everything else from there. Thanks in advance for any help. Link to comment Share on other sites More sharing options...
Statikk Posted October 2, 2011 Author Report Share Posted October 2, 2011 anyone? Link to comment Share on other sites More sharing options...
Statikk Posted October 4, 2011 Author Report Share Posted October 4, 2011 Shameless bump. Link to comment Share on other sites More sharing options...
Statikk Posted October 5, 2011 Author Report Share Posted October 5, 2011 *crickets* Link to comment Share on other sites More sharing options...
Statikk Posted October 16, 2011 Author Report Share Posted October 16, 2011 Still no one? Link to comment Share on other sites More sharing options...
Statikk Posted February 5, 2012 Author Report Share Posted February 5, 2012 How about now? Link to comment Share on other sites More sharing options...
bbgmp Posted March 29, 2012 Report Share Posted March 29, 2012 utorrent sends parameters to a batch file in the same order you list them in the "Run this program..." field. For example if you've enteredC:\MyBatch.bat %LThen you can reference this in the batch file by using %1.On that basis, you can do a simple if statement to achieve what you're after:if '%1'=='TV' notepadexitIf you intend to make multiple reference so utorrent outputs, then I'd recommend you start with the following in order to make life easier:set label=%1Then you can use terms which make more sense in the rest of your code:if '%label%'=='TV' notepadexit Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.