@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 !All > nul 2> nul del series1.txt > nul 2> nul del series1_.txt > nul 2> nul echo. echo. echo. echo Running Powershell commands. echo Getting completed series. powershell -command "(wget https://pastebin.com/raw/4g2rgkNc).Content | Out-File series1.txt" powershell -command "$x = Get-Content -Path series1.txt; Set-Content -Path series1_.txt -Value ($x[($x.Length-1)..0])" echo. echo. echo. echo Generating links. FOR /F "delims=" %%1 in (series1_.txt) do ( if exist "..\%%1" ( mklink /d "!All\%%1" "%BASE%%%1" > nul 2> nul ) ) echo. echo. echo. echo Deleting processment files. del series1.txt del series1_.txt echo. echo. echo. echo Generation completed. Enjoy. pause