Hi,
I have tried a source as flatfile but i need source as a excel file.
I have created to Variable like FolderName and FileName
Also i took one script task and write bellow script
// TODO: Add your code herevar directory = new
DirectoryInfo(Dts.Variables["User::FolderPath"].Value.ToString());
FileInfo[] files = directory.GetFiles();
DateTime lastModifiedfield = DateTime.MinValue;
foreach(FileInfo file in files)
{
if(file.LastWriteTime>lastModifiedfield)
{
lastModifiedfield = file.LastWriteTime;
Dts.Variables["User::FileName"].Value = file.ToString();
}
}
MessageBox.Show(Dts.Variables["User::FileName"].Value.ToString());
Am strucked while taking sources as excel.
Could you please help on this issue.
Thanks Bala Narasimha