Startēt uTorrent tikai tad, ja ir torrenti ko kačāt/sīdot

Nebija ko darīt un nepatika, ka uTorrent sēž trejā. Izdomāju, ka startēšu uTorrent tikai tad, ja iekš manas torrents mapes (tur, kur tiek glabāti visi mani *.torrent faili) būs kāds  torrents, ko kačāt.

@ECHO OFF
:: This batch file checks if there are any .torrent files
:: in the specified dir & executes uTorrent if it succeeded.

SET UTORRENT=C:\Program Files\uTorrent\uTorrent.exe
SET TORRENTS=C:\Program Files\uTorrent\Torrents

IF EXIST "%TORRENTS%\*.torrent" START "" /min "%UTORRENT%"

Nokopē augstāk esošo tekstu, saglabā kā utorrent.bat. Pievienojam jaunu scheduled task un liekam tam startēties kad  ielogojies vai kad sistēma startējas.

Advertisement


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.