bearbear12345

File List Batch Script

Oct 9th, 2015
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.35 KB | None | 0 0
  1. @echo off
  2. echo [] Deleting previous listings
  3. del _whodoisee_ 2>nul
  4. echo [] Generating list
  5. echo. >nul 2>_whodoisee
  6. for /f "delims=" %%x in ('dir /b') do (
  7.   if not [%%x]==[_whodoisee] (
  8.     if not [%%x]==[_whodoisee_.bat] (
  9.       echo %%x  ^|  >>_whodoisee
  10.     )
  11.   )
  12. )
  13. move /y _whodoisee _whodoisee_ >nul 2>nul
  14. echo Complete!
  15. rem del _whodoisee_.bat
Advertisement
Add Comment
Please, Sign In to add comment