hop of those help? As understood from you, you want to transfer 5 files into each folder. Which means, files 1 to 5 are put into folder 1, 6 to 10 in folder 2, 11 to 15 in folder 3 and so on. Try out this code, should work well with just one loop.
setlocal enabledelayedexpansion enableextensions
set /a result=(total/num1)
FOR /L %%I IN (1,1,%total%) DO (
set /A var=%%I %% 5
if !var! == 1 (
set /A foldernum=foldernum + 1
ECHO %%I And !foldernum!
How to set the HTTP status code to 201 using ServiceStack without mixing business logic with transport logic?
this one helps. I think this is equivalent to asking: What is the role of Services within the context of the MVC pattern? In Angular2, the Model is the Object model, specified as member variables of the component class, the Controller is the Component class, and the View is the component template. Services are responsible for retrieving the Models that the Controller needs to render the view. Hence, Services are view agnostic.
Designing view in Interface Builder, but with some logic defined in code