I just spent the last 30 min reviewing the top 20 search results for "running programs after a torrent finishes" and none of the solutions seemed to do anything. Multiple threads suggests that my setup is fine so I'm hoping someone can chime in.
In qBit options I have the following for "Run external program on torrent completion"
Code: Select all
"D:\Programs\Scripts\TorrentExtract.bat "%D""
- D:\Programs\Scripts\TorrentExtract.bat "%D"
- "D:\Programs\Scripts\TorrentExtract.bat" "%D"
- "D:\Programs\Scripts\TorrentExtract.bat \"%D\""
- "D:\Programs\Scripts\TorrentExtract.bat \"%D\""
- cmd.exe /C "D:\Programs\Scripts\TorrentExtract.bat" "%D"
Code: Select all
:: This program will extract a .rar or .zip file
::
:: Author: Scott Walters
::
@echo on
pushd "C:\Program Files\7-Zip\"
::take argument and assign variable
set torrentPath=%1
:: Checks for .rar or .zip file
if exist %torrentPath%\*.rar GOTO RAR
if exist %torrentPath%\*.zip GOTO ZIP
:: Runs if the directory contains a .rar file
:RAR
7z x -o%torrentPath% %torrentPath%\*.rar
GOTO END
:: Runs if the directory contains a .zip file
:ZIP
7z x -o%torrentPath% %torrentPath%\*.zip
GOTO END
:: Runs at the end of the sequence
:END
:: Comment out pause if you want the cmd window to close when done.
pause
Code: Select all
D:\Programs\Scripts\TorrentExtract.bat "%D"
Any help would be greatly appreciated. I just reinstalled Windows and decided to try qBit out instead of dealing with the hassle of yanking out the ads for uTorrent. If I can't get this sorted, I'm going to have to reluctantly go back...
- Windows 10
- qBit 3.3.10
- Qt 5.7.1
- Libtorrent 1.0.10.0
- Boost 1.62.0
- Testing on torrents with a video split into multiple .rar chunks
- Fresh install of qBit