Sorting Files by Name, Date, FileSize etc (C#)

I needed to test my SSIS import package which reads files every minute, to test this i want a program that moves files from one directory to the SSIS import directory, the filename has to be sorted on filename (it consists of datetime) so i get a more real import.

I first tried to create a SSIS to package that can do what i want but after some searching that i decided to create a simple C# file.  I found this great post to help me sorting my filenames using IComparer:
http://webdevel.blogspot.com/2007/09/sorting-files-by-name-date-filesize-etc.html

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.