I have a set of csv files that is being backed up in a folder on daily basis.
Say FOr eg:
File Modified Data
Country.csv 27/03/2013 09:00:01 AM
Geography.Csv 27/03/2013 09:00:01 AM
Product.csv 27/03/2013 09:00:02 AM
CUsomer.cSV 27/03/2013 09:00:02 AM
Country.csv 26/03/2013 09:00:02 AM
Geography.Csv 26/03/2013 09:00:02 AM
Product.csv 26/03/2013 09:00:01 AM
CUsomer.cSV 26/03/2013 09:00:01 AM
Country.csv 25/03/2013 09:00:02 AM
Geography.Csv 25/03/2013 09:00:03 AM
Product.csv 25/03/2013 09:00:01 AM
CUsomer.cSV 25/03/2013 09:00:01 AM
This way I have files backedup in the folder for 5 plus days...
I'll have four packages to pick up the data from Country, Geography,Product and Customer and load the same in to four different tables...I am able to write a script code to identify the latest file from the path...But I wanted to hardcode the filename some where in the package, so that particualr package will check for the latest file (say Cusomer), it will search for all the Customer files and pick up the latest and load into db.
Any help on this ?
I wanted to pick up the latest file from the folder and load the same into the database