Windows service search a directory path
I need to write a C# 2010 windows service that will check for new files in a specified directory path . Can you tell me how to accomplish this goal?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Sukesh MarlaRank #461 · 5.4K reputationPosted Oct 8, 2012, 12:12 PM EDT
For instace First Time take the file with MAX DAte and store the date somewhere example in settings
In second , third time.....Again do the same , Get the File with MAX DATE
if this date is greater than date stored in settings, means its a new file and change the date in the settings with this date.
Check this is correct answer if it helped.
dcRank #2,247 · 627 reputationPosted Oct 8, 2012, 7:36 PM EDT
I am working with a console application. Would that have settings? How would you store the values for a console application and use the stored values?
Sukesh MarlaRank #461 · 5.4K reputationPosted Oct 9, 2012, 8:44 AM EDT
THen Properties.Settings.Default.LastIndex by this you can set and get Setting value.
Check this is correct answer if it helped.