Advertisement
Guest User

Untitled

a guest
Mar 18th, 2013
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.34 KB | None | 0 0
  1. @echo off
  2. cd "U:\Batch\Files\"
  3. set Counter = 0
  4. set FolderCounter = 10
  5. for %%f in (*.xml) do call :p "%%f"
  6. goto :eof
  7.  
  8. :p
  9.     set /a Counter+=1
  10.     set /a X=Counter %% %FolderCounter%
  11.    
  12.     if %X% == 0 (
  13.         mkdir "U:\Batch\%FolderCounter%"
  14.         set FolderCounter += 1
  15.     )
  16.    
  17.     PAUSE
  18.    
  19.     if %X%==0 copy %1 "U:\Batch\%FolderCounter%"
  20. goto :eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement