bat BAT Files: Execute Multiple Commands in a Loop One of the tasks the other day was to load a large DB organised by year. The most efficient way was to loop through a sequence of years and execute the loader for each one. The first iteration I ended with was: FOR /L %%Y IN (1996,1,2008) DO