Advertisement
Vodkaholic

Untitled

Mar 25th, 2013
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. @echo off
  2. for /f "delims=" %%a in ('dir /b') do (
  3. if not "%%~fa"=="%~f0" (
  4. md "%%~na" 2>nul
  5. if exist "%%a" move "%%~na.*" "%%~na"
  6. )
  7. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement