Move and redistribute all files from a folder (and its subfolders) to one of 4 other folders.
Posted on 2014-02-27
I would like a Windows batch file for DOS (not Powershell) to move distribute files evenly from folder S:\SOURCE to folders D:\Dest1, D:\Dest2, D:\Dest3, D:\Dest4 INCLUDING files WITHIN SUBDIRECTORIES (duplicate filenames need not be moved).
I.e., all files (including files within subfolders) from S:\SOURCE are moved and nearly evenly distributed among each of the 4 destination folders. If there are 1000 files in all of the subdirectories of S:\SOURCE then after the batch file is run, all of the 1000 files will be removed from S:\SOURCE and each of the folder D:\Dest1, .... D:\Dest4 will have approximately 250 files.
I prefer this to be done with a DOS .bat file rather than Powershell