Windows script to create directories of 3,000 files
Posted
by uhpl1
on Server Fault
See other posts from Server Fault
or by uhpl1
Published on 2010-06-08T17:05:01Z
Indexed on
2010/06/08
17:12 UTC
Read the original article
Hit count: 234
We have some email archiving that is dumping all the emails into a directory. Because of some performance reasons with the server, I want to setup an automated task that will run a script once a day and if there is more than 3,000 (or whatever number) of files in the main directory, create a new directory with the date and move all the main directory files into it. I'm sure someone has already written something similar, so if anyone could point me at it that would be great. Batch file or Powershell would both be fine.
© Server Fault or respective owner