Welcome
WildBeard83,
The best way to achieve your desired results is always to break them down into smaller and smaller steps. Consider doing it manually and try to work out what tasks you need to do and then break each one down further.
Most languages end up with a very few basic concepts:-
- Execute in sequence
- Execute in a loop
- Execute depending on a condition
If you can refine your logic then it makes it easier to eventually write the code but computers are very obedient. They do
exactly what you tell them, even if that's not what you quite meant.
Running at midnight would mean scheduling with
cron would be well worthwhile.
So, to clarify your requirements:-
- Do you need to:-
- zip/compress each file individually
- zip/compress all the files for today into a single archive
- How will you match files based on the <daterange>
Sorry that there is no easy answer just yet, but if we can be certain of your needs, then I'm sure we can help you build something.
Regards,
Robin