@ECHO OFF
SETLOCAL
FOR %%i IN (".\*.world") DO (
TYPE q20769624.txt|FINDSTR /i /b /e /L /c:"%%~ni" >NUL
IF ERRORLEVEL 1 ECHO DEL "%%i"
)
GOTO :EOF
Where q20769624.txt
is your whitelist file, without the .world
appendix.
This batch will simply echo
the files to delete. Remove the ECHO
keyword before the DEL
to activate the delete function after testing.
Amended to allow spaces in the filename and no newline at end of data file.