P
(PeteCresswell)
I've got a .BAT routine that keeps 30 backup copies of a file.
Right now, I am just naming them
Whatever.00
Whatever.01
Whatever.02....
Whatever.30
Then, when it is time to run an new backup, I just delete
Whatever.00, rename Whatever.01 to Whatever.00, rename
Whatever.02 to Whatever.01 - and so-forth, making the new backup
Whatever.30.
Works, but it would be a lot nicer if I could name the files with
a timestamp instead of a two-digit number.
e.g.
Whatever.2011.06-01
Whatever.2011.06-02
Whatever.2011.06-03....
Whatever.2011.06-30
Creating the file name sb no problem.
But how to identify the oldest file before creating the latest
one?
Seems like I could either scan the file names (sounds pretty
intimidating to me...), scan the props (also intimidating).
What I'm trolling for is some BAT or CMD command that will
magically return the oldest file.
Anybody?
Right now, I am just naming them
Whatever.00
Whatever.01
Whatever.02....
Whatever.30
Then, when it is time to run an new backup, I just delete
Whatever.00, rename Whatever.01 to Whatever.00, rename
Whatever.02 to Whatever.01 - and so-forth, making the new backup
Whatever.30.
Works, but it would be a lot nicer if I could name the files with
a timestamp instead of a two-digit number.
e.g.
Whatever.2011.06-01
Whatever.2011.06-02
Whatever.2011.06-03....
Whatever.2011.06-30
Creating the file name sb no problem.
But how to identify the oldest file before creating the latest
one?
Seems like I could either scan the file names (sounds pretty
intimidating to me...), scan the props (also intimidating).
What I'm trolling for is some BAT or CMD command that will
magically return the oldest file.
Anybody?