Here is the Batch file first
Line 1 does lists all GBK files in VARIABLE's directory by date (new first) and redirects output to a file.
Line 2 Process this list skipping the first VARIABLE GBK files in that list, and deletes the remaining files based on data not skipped in that list.
Line 3 Deletes templist.fil
Now I have tried several scripted approaches to this and can not figure this little bugger out! Can someone tell by simply pointing me in the right direction...
Dictionary? or Array? ReDimmed or not?
and I am sure I can figure it out with about 5 hours of hacking at it <GRIN>
Thanks guys!
Code:
dir %1\*.gbk /o-d /b >templist.fil
for /F "skip=%2" %%A in (templist.fil) do (del %1\%%A)
del templist.fil
Line 2 Process this list skipping the first VARIABLE GBK files in that list, and deletes the remaining files based on data not skipped in that list.
Line 3 Deletes templist.fil
Now I have tried several scripted approaches to this and can not figure this little bugger out! Can someone tell by simply pointing me in the right direction...
Dictionary? or Array? ReDimmed or not?
and I am sure I can figure it out with about 5 hours of hacking at it <GRIN>
Thanks guys!