Hey people,

I have a major problem. I know that this can be done just not how.

We have a list of HTML files that get emailed to us each week (payroll reports). These have file names like 1122002-005.html I need to be able to read the file name and move to special folders depending on the name, ie

1122 = COmpany Code (All have this)
002 = Report Type (Approx 50 Reports all 3 digits)
-005 = Plant for the report, have 32 plants.

We need to be able to read these names, move them to a folder with a new name of DATE and TIME.html

Any suggestions would be great.