Skip to content

Batch file to recreate library from *.filelist.org files

Benjamin Brisson edited this page Mar 18, 2021 · 4 revisions

Just run in the folder with logs Generates by the ASS scanner to recreate the file library

@ECHO OFF
chcp 65001
rem 1251>nul
for %%x in ("*.filelist.log") do (
  ECHO %%x
  for /f "usebackq tokens=*" %%a in ("%%x") do (
    ECHO - Dir: "%%~pa", File: "%%a"
    IF NOT EXIST "%%~pa" mkdir "%%~pa"
    IF NOT EXIST "%%a" TYPE nul > "%%a"
  )
)
rundll32 user32.dll,MessageBeep -1
PAUSE