Improved for loop in ms-dos