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?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sukesh MarlaPosted Oct 9, 2012, 12:44 PM
THen Properties.Settings.Default.LastIndex by this you can set and get Setting value.
Check this is correct answer if it helped.
dcPosted Oct 8, 2012, 11:36 PM
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 MarlaPosted Oct 8, 2012, 4:12 PM
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.