Citat:
Ursprungligen postat av Izze2005
Hejsan!
För den som är intresserad satte jag ihop en enkel liten batchfil Check_Anonine_Kill_Start_uTorrent_v01.bat som kikar via ipconfig.exe om Anonine är uppe och snurrar.
Om Anonine går ner terminerar programmet uTorrent.exe processen.
Som lite bonus startat programmet upp uTorrent om Anonine är uppe men ingen uTorrent-process snurrar.
...ser ut att fungera fint på min 32bits Vistamaskin.
....och såklart används som vanligt på egen risk!
torrent finns på bl.a.
http://www.monova.org/details.php?id=2946192&ref=
Spara filen i uTorrent.exe biblioteket, klicka så är ni igång. Koppla in och ut Anonine och så skall uTorrent termineras eller hoppa igång.
Enjoy!
Här kommer även innehållet i batchfilen, lätt att modifiera för egna önskemål. Filen kan även köras från andra bibliotek än där uTorrent.exe ligger, men då kan (utan modifikation) ej uTorrent.exe startas från programmmet.
@echo off
ECHO Check_Anonine_Kill_Start_uTorrent_v01.bat by Izze July 2009
ECHO This batch file will check if the Anonine VPN tunnel is active
ECHO If not it will kill uTorrent.exe process if it is running
ECHO If Anonine is active and uTorrent is not running it will try to start it
ECHO The PING statement is used as a 5 second delay
ECHO Copy this text into notepad and save as Check_Anonine_Kill_Start_uTorrent_v01.bat in the uTorrent.exe library
ECHO Click it and you go!
ECHO developed on a 32 bit Windows Vista Home Premium
ECHO Note!! Use at your own risk and enjoy!!
:start
SET CONNECT=an
ipconfig.exe | FIND "Anonine" > NUL
IF ERRORLEVEL==1 GOTO noVPN
Tasklist.exe | FIND "uTorrent.exe" > NUL
IF ERRORLEVEL==1 START uTorrent.exe
GOTO vpn
:noVPN
SET CONNECT=NO
Taskkill /F /IM uTorrent.exe /T
:vpn
ECHO You have %CONNECT% active connection via Anonine
TIME /T
PING 127.0.0.1 -n 6 >NUL
GOTO start