Wacky_rubia

xxxprint

Jan 18th, 2014
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.76 KB | None | 0 0
  1. @echo off
  2. setlocal EnableDelayedExpansion
  3. for %%a in ( A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9 0 ) do (
  4.     for %%b in ( A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9 0 ) do (
  5.         for %%c in ( A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9 0 ) do (
  6.             set file=%%a%%b%%c
  7.             if EXIST !file! (
  8.                 mkdir x\!file! 2>nul
  9.                 if ERRORLEVEL 0 (
  10.                     echo !file!
  11.                 ) else (
  12.                     del !file! 2>nul
  13.                 )
  14.             )
  15.                
  16.             for %%d in ( A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9 0 ) do (
  17.             set file=%%a%%b%%c%%d
  18.             if EXIST !file! (
  19.                 mkdir x\!file! 2>nul
  20.                 if ERRORLEVEL 0 (
  21.                     echo !file!
  22.                 ) else (
  23.                     del !file! 2>nul
  24.                 )
  25.             )
  26.             )
  27.         )
  28.     )
  29. )
  30. endlocal
Advertisement
Add Comment
Please, Sign In to add comment