Created
April 21, 2019 04:16
-
-
Save apharp/4da94c1b83aa89d558afb672991d9e67 to your computer and use it in GitHub Desktop.
Extract RAR files in torrents upon completion.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param ( | |
$TPath | |
) | |
$rarFile = Get-ChildItem "$TPath\*" -Include "*.rar" | |
if ($rarFile.count -gt 0) | |
{ | |
$rarFullName = $TPath + "\" + $rarFile.Name | |
& "C:\Program Files\7-Zip\7z.exe" e "$rarFullName" -o"$TPath" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Super simple script to extract rar files when torrent complete.
Here is the command to run within QBitorrent
powershell "E:\preprocessed\TorrentUnrar.ps1" -TPath "%F"