I have adir c:\miadir\ with this type of files:
aa.mdb
ff.doc
TEST_01-09-2011.TXT
TEST_02-09-2011.TXT
TEST_02-11-2011.TXT
TEST_03-10-2011.TXT
TEST_04-10-2011.TXT
TEST_05-09-2011.TXT
TEST_05-10-2011.TXT
TEST_01-09-2011.TXT
TEST_02-09-2011.TXT
TEST_02-11-2011.TXT
TEST_03-10-2011.TXT
TEST_04-10-2011.TXT
TEST_05-09-2011.TXT
TEST_05-10-2011.TXT
TEST_06-09-2011.TXT
TEST_06-10-2011.TXT
TEST_07-09-2011.TXT
TEST_07-10-2011.TXT
TEST_08-09-2011.TXT
TEST_09-09-2011.TXT
TEST_10-10-2011.TXT
TEST_11-10-2011.TXT
TEST_12-09-2011.TXT
TEST_12-10-2011.TXT
TEST_13-09-2011.TXT
TEST_13-10-2011.TXT
TEST_14-09-2011.TXT
TEST_14-10-2011.TXT
TEST_15-09-2011.TXT
TEST_16-09-2011.TXT
TEST_18-10-2011.TXT
TEST_19-09-2011.TXT
TEST_19-10-2011.TXT
TEST_20-09-2011.TXT
TEST_20-10-2011.TXT
TEST_21-09-2011.TXT
TEST_21-10-2011.TXT
TEST_22-09-2011.TXT
TEST_23-09-2011.TXT
TEST_24-10-2011.TXT
TEST_25-10-2011.TXT
TEST_26-09-2011.TXT
TEST_26-10-2011.TXT
TEST_27-09-2011.TXT
TEST_27-10-2011.TXT
TEST_28-09-2011.TXT
TEST_28-10-2011.TXT
TEST_29-09-2011.TXT
TEST_30-09-2011.TXT
TEST_31-10-2011.TXT
i need to loop in dir only .txt files but before order the txt file by dates possible?
aa.mdb
ff.doc
TEST_01-09-2011.TXT
TEST_02-09-2011.TXT
TEST_02-11-2011.TXT
TEST_03-10-2011.TXT
TEST_04-10-2011.TXT
TEST_05-09-2011.TXT
TEST_05-10-2011.TXT
TEST_01-09-2011.TXT
TEST_02-09-2011.TXT
TEST_02-11-2011.TXT
TEST_03-10-2011.TXT
TEST_04-10-2011.TXT
TEST_05-09-2011.TXT
TEST_05-10-2011.TXT
TEST_06-09-2011.TXT
TEST_06-10-2011.TXT
TEST_07-09-2011.TXT
TEST_07-10-2011.TXT
TEST_08-09-2011.TXT
TEST_09-09-2011.TXT
TEST_10-10-2011.TXT
TEST_11-10-2011.TXT
TEST_12-09-2011.TXT
TEST_12-10-2011.TXT
TEST_13-09-2011.TXT
TEST_13-10-2011.TXT
TEST_14-09-2011.TXT
TEST_14-10-2011.TXT
TEST_15-09-2011.TXT
TEST_16-09-2011.TXT
TEST_18-10-2011.TXT
TEST_19-09-2011.TXT
TEST_19-10-2011.TXT
TEST_20-09-2011.TXT
TEST_20-10-2011.TXT
TEST_21-09-2011.TXT
TEST_21-10-2011.TXT
TEST_22-09-2011.TXT
TEST_23-09-2011.TXT
TEST_24-10-2011.TXT
TEST_25-10-2011.TXT
TEST_26-09-2011.TXT
TEST_26-10-2011.TXT
TEST_27-09-2011.TXT
TEST_27-10-2011.TXT
TEST_28-09-2011.TXT
TEST_28-10-2011.TXT
TEST_29-09-2011.TXT
TEST_30-09-2011.TXT
TEST_31-10-2011.TXT
i need to loop in dir only .txt files but before order the txt file by dates possible?