@echo off %~d0 cd "%~dp0" SET START=%cd%\ cd .. SET BASE=%cd%\ cd %START% echo This batch script will generate a new folder (!) echo that will only contain the completed series available echo in the collection (Yaoi ignored). echo These include series that are finished and echo fully translated. echo Keep in mind these lists might not be 100% accurate. echo Help us maintain them by commenting on our torrents. echo The folders generated are simple shortcuts to the echo original folders in the collection, deleting the echo folders in the collection will break the shortcuts. pause echo. echo. echo. echo Deleting processment files if present. mkdir !Multiple > nul 2> nul del series2.txt > nul 2> nul del series2_.txt > nul 2> nul echo. echo. echo. echo Running Powershell commands. echo Getting completed series. powershell -command "(wget https://pastebin.com/raw/jsBkC12N).Content | Out-File series2.txt" powershell -command "$x = Get-Content -Path series2.txt; Set-Content -Path series2_.txt -Value ($x[($x.Length-1)..0])" echo. echo. echo. echo Generating links. FOR /F "delims=" %%1 in (series2_.txt) do ( if exist "..\%%1" ( mklink /d "!Multiple\%%1" "%BASE%%%1" > nul 2> nul ) ) echo. echo. echo. echo Deleting processment files. del series2.txt del series2_.txt echo. echo. echo. echo Generation completed. Enjoy. pause