Basic code for a Windows service to pick the files from a file share and place it in an another fileshare is ready, please let me know whether you need to see a demo.
Here is the approach.
1. FileSystemWatcher will monitor the file location for any newly dropped file
2. RegularExpressions will validate the naming convention of the file and if it matches, it will move to success folder +save in database, else in move error folder + log the error in DB + send email
I have few specific question related to your requirement
1. What is the naming convention of the files? I will build the regular expression accordingly to validate the file name
2. Please consider the fact that service account(the account on which windows service will be running) need to give permission to write file in shared path.
3. Assuming the file locations will be configured in application config file
I am an IT professional with 14 yrs of industrial experience in .NET, C#, ASP.NET, SQL Server and various other Microsoft technologies.