Click here to Skip to main content
15,887,376 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have a requirement where I have to read the two XML files from remote path to local path in automated process (job).

My file names would be like WUP03122014NAME (system+date of updated+name of updated person),INT04122014NAME

From my remote location ,I have to read the latest these two types of XML files based on Date of creation in filename and push to local folder.

But how can we compare the latest dates of files in FTP task.I see some posts on google ,stating that use script task.But i m DB developer,i am unable to understand how to do this .

Could you please provide the suggestions ,sample solutions approach.


Thanks in advance.
Posted
Comments
PIEBALDconsult 3-Dec-14 13:36pm    
I've done a bunch of SSIS over the last few years, but I haven't used an FTP task.
However, I _have_ used a C# script to download files created since a date -- like in the past week.
System.Net.HttpWebRequest req = (System.Net.HttpWebRequest)System.Net.WebRequest.Create(URL);
req.IfModifiedSince = Since; <== for instance, the date of the last successful download
Member 11283674 4-Dec-14 1:07am    
can you plz share little more code snippet?
Member 11283674 6-Dec-14 7:10am    
Any approach plz?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900