Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- for /f "delims=" %%a in ('dir /b') do (
- if not "%%~fa"=="%~f0" (
- md "%%~na" 2>nul
- if exist "%%a" move "%%~na.*" "%%~na"
- )
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement