I opened this question below for help 'getting' the most recent file written to a given directory.
it works beautifully. i have determined, though, that i may need to revise, such that i can retrieve mutliple files since the last time run. for example, since the last time run, maybe for whatever reason the job hasn't run for 4 or 5 days, or more specifically, somebody has dropped several files in on the same day - all of which i need to retrieve. so, the last time it's run, i've picked up filname.cax.20050505, but now I've got to go in there and get filname.cax.20050506, filname.cax.20050507, filname.cax.20050508 and filname.cax.20050509.
so, yesterday in the dir i had these:
today, i've got these -- my most recent bat does fine to pick up filename.dif.20050509, but it fails to get the rest -- i need the 3 i don't have -- which are the last three: