I am contemplating writing a program that will move some newly created dirs to another that puts them into date-stamped folders; either by week-month-year or month-year. I can probably write/debug/test this in java in 1.5 hours, BUT
I would like to know if anyone else has had to deal with this, and perhaps has done it with a windows batch script, or something else i can just use.
edit: it turns out i didnt state my requirements well enough. Better requirements:
- i need newly created folders of current month to be copied to a current-month named folder elsewhere. This is important because new folders are being created every day, and if i always copy them all from source dir to month stamped dirs, i will eventually copy last month's file to this months folder.
Moreover, deleting files in source dir after copy is also a bad option, because the files are being streamed in, so there is a chance of some file in source dir being written to at the time of deletion.