SHARE
TWEET

Untitled

a guest Jan 20th, 2015 838 Never
  1. @echo off
  2. SetLocal EnableDelayedExpansion
  3. set Source=C:\Users\%username%\Desktop\Temporary Files
  4. set Target=C:\Users\%username%\Desktop\Temporary Files\Loli
  5. set count=0
  6.  
  7. if not exist "%Source%" (
  8. echo Cannot find the folder "%Source%"
  9. pause
  10. goto :eof
  11. )
  12. if not exist "%Target%" md "%Target%"
  13. for /F "delims=" %%a in ('dir /on /b /a-d "%Source%"') do (
  14. echo Moving "%Source%\%%a"
  15. move /y "%Source%\%%a" "%Target%"
  16. set /a count=!count! + 1
  17. if !count! GEQ 500 goto :eof
  18. )
RAW Paste Data
Top