@echo off
echo [] Deleting previous listings
del _whodoisee_ 2>nul
echo [] Generating list
echo. >nul 2>_whodoisee
for /f "delims=" %%x in ('dir /b') do (
if not [%%x]==[_whodoisee] (
if not [%%x]==[_whodoisee_.bat] (
echo %%x ^| >>_whodoisee
)
)
)
move /y _whodoisee _whodoisee_ >nul 2>nul
echo Complete!
rem del _whodoisee_.bat
Comments