My script uploads files. For each upload, I need to rename the file in the following format:
yyyymmddxxx.txt
I can upload the files fine and I can parse out the date pieces and format them as I want.
What I don't know how to do is increment the number so that when a new date the counter goes back to 0.
For instance if I send 150 files today, I would have
20010814150.txt as the last filename.
Tomorrow the first filename should be 20010815001.txt
Any ideas?
Thanks
fergmj
yyyymmddxxx.txt
I can upload the files fine and I can parse out the date pieces and format them as I want.
What I don't know how to do is increment the number so that when a new date the counter goes back to 0.
For instance if I send 150 files today, I would have
20010814150.txt as the last filename.
Tomorrow the first filename should be 20010815001.txt
Any ideas?
Thanks
fergmj