What exactly do you have and what do we need to invent for you?
- Do you already have the function that turns a number in the range 1-365 into a data string yet? If so, please post that part.
- Do you already have the part that gets a file list and loops over all existing files and constructs source and desitnation filenames and calls movefile? (This part is trivial.)