batch script to move n files exch time
问题 I currently have a script to move all files in a temp_dir to dir and process files. I would like to change it to move n files in batches to process them. What would be best way to achieve it through batch script. 回答1: I'm not quite sure what you need. Do you intend to process every file in batches of N until no files remain? Or do you intend to process only the first N files per directory, ignoring all the rest? Scenario 1: processing every file in batches of N You could use a modulo