Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

emptying a folder using SSIS script task

$
0
0

Hi Guys,

I am generating reports to a directory (folder), via ssis script task and C#.. I want to validate the following..

1. Deleting all old reports except last 10 reports. My report name for example is Report_DDMMYYYY

2. If current report already exists then I want to overwrite that report every time if i run the ssis script task (which exists in a foreach loop container) manually.

I am using Streamwriter to dump the data into a flatfile report.

Thanks.

 


Viewing all articles
Browse latest Browse all 24688

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>