Need some help here. I'm trying to sever thousand files to a directory in sequence of 100 at the time. So I want to copy 100 files first, then wait about 60 seconds to copy the next 100. This is what I got so far:
GO TO LOOP
FOR /F "tokens=* delims= " %%i IN ('dir /b ') DO (
set /a N+=1
move "%%i" D:/MYDIRECTORY
if !N! geq 100 GOTO START
The first time it goes through fine for the first 100 files. But when it goes back to START, it starts copying one file every 60 seconds. Any help would be appreciated.