Need help with coding

HI,

Can some one guide me how to make changes to the script below so that it can load the history of a program to IT server ?

Format of data:
YYYYMMDD065959.dsk.log
YYYYMMDD235959.dsk.log

currently both are loaded together. Need to separate them as above format.

Thanks in advance.

//My_source_code:

Double post, continue here