Open command line, type in


for /?

This will give you some helpful instructions on writing  a for loop in Windows batch.