xhowl

Create a folder for each files in a directory

Jun 1st, 2012
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. All file types
  2. @echo off
  3. for %%a in (*.*) do (
  4. md "%%~na" 2>nul
  5. move "%%a" "%%~na"
  6. )
  7.  
  8. Certain file types
  9. @echo off
  10. for %%a in (*.jpg *.max) do (
  11. md "%%~na" 2>nul
  12. move "%%a" "%%~na"
  13. )
Advertisement
Add Comment
Please, Sign In to add comment