Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- cd "U:\Batch\Files\"
- set Counter = 0
- set FolderCounter = 10
- for %%f in (*.xml) do call :p "%%f"
- goto :eof
- :p
- set /a Counter+=1
- set /a X=Counter %% %FolderCounter%
- if %X% == 0 (
- mkdir "U:\Batch\%FolderCounter%"
- set FolderCounter += 1
- )
- PAUSE
- if %X%==0 copy %1 "U:\Batch\%FolderCounter%"
- goto :eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement