CODE: [Copy to clipboard]@echo off for %%a in (*.exe *.bat) do if not "%%a" == "%~nx0" echo "%%a" pause