Hello, CAn you help me create batch file to divide a set of files into 500 and move it to folder. I need this to zip every 500 files.
Thanks for your help
@echo off & setLocal EnableDELAYedeXpansion pushd c:\files
set N=
for /f "tokens=* delims= " %%a in ('dir/b') do (
set /a N+=1
if !N! leq 500 (
echo move %%a d:\dest
)
)
Thanks it worked fine but I changed set /a N+=1
to
set /a N=!N! + 1Thanks a lot
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |