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