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

How to delete files from folder based on file date value using script task in ssis

$
0
0

Hi All,

Scenario: I have one folder with 4 files, Now i want to delete 2 files which are too old files based on file date value using script task.

Examples: 

Folder Name: C:\Sample\

FileNames:

Test08122016.txt
Test07122016.txt
Test06122016.txt    ---Need to Delete
Test05122016.txt    ---Need to Delete 

Please share your suggestion on this.

Regards,


Vaishu



Viewing all articles
Browse latest Browse all 24688

Trending Articles



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