spyvingen Posted March 18, 2013 Report Share Posted March 18, 2013 hi i have a tracker i use together with sickbeard an di now would like to copy every finnished job from that tracker ta another folder but still leave a copy to seed.I guess i should have something like this in uTorrent D:\utorrent_sickbeard.bat "%F" "%T"Corect?And then the script is there someno who could help me make a simple script that search for like 2-3 trackers and if that file/folder is from that tracker copy the file to e:\_dl\sickbeard?Thanks in advanced Link to comment Share on other sites More sharing options...
spyvingen Posted March 18, 2013 Author Report Share Posted March 18, 2013 Would work with a vbs to if that is supportet cus im usting win Link to comment Share on other sites More sharing options...
spyvingen Posted March 18, 2013 Author Report Share Posted March 18, 2013 Ive gotten pretty far now and the only thing missing is to see if a string contains a certain text.I have a trcker that have a lot of random stuff like it seems is ther a way to see if the string contains like "tracker.mytracker.com" instead of scompare the whole string?The tracker i have is like this : tracker.mytracker.com/sdfggw5gr6he56hyjhdtyujdtyj7jdtjd4w4t45ty45y4y/1532794/announce Link to comment Share on other sites More sharing options...
ciaobaby Posted March 18, 2013 Report Share Posted March 18, 2013 http://www.w3schools.com/vbscript/func_instr.asp Link to comment Share on other sites More sharing options...
spyvingen Posted March 18, 2013 Author Report Share Posted March 18, 2013 Thank you for the and sorry forgot to write that I went with batchfile.So a solution for batch would be appreciated. Link to comment Share on other sites More sharing options...
ciaobaby Posted March 18, 2013 Report Share Posted March 18, 2013 So a solution for batch would be appreciatedNot going to happen.There are no string manipulation commands in DOS. The nearest is findstr which will search a text file and return an errorlevel value if found. Link to comment Share on other sites More sharing options...
spyvingen Posted March 19, 2013 Author Report Share Posted March 19, 2013 Got the solution on anoother forum and this is what worked in the endecho.%str2% | findstr /C:"%str1%" 1>nulif errorlevel 1 ( echo. Returnerade 1 - pattern not found - Do what you want here) ELSE ( echo. Returnerade 0 - found pattern - Do what you want here) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.