G
Guest
Hi,
I need to write a C# windows service that will scan a specified directory every n minutes, the number of minutes needs to be passed in via an argument for examples directoryscanner.exe /timer:5 , would tell the program to scan the directory every 5 minutes
Therefore my question how do I code my program to do this. I envisage that some sort of timer is required that will raise a method within my program at the specified interval, also how do I read in the argument on the command line.
Many thanks
I need to write a C# windows service that will scan a specified directory every n minutes, the number of minutes needs to be passed in via an argument for examples directoryscanner.exe /timer:5 , would tell the program to scan the directory every 5 minutes
Therefore my question how do I code my program to do this. I envisage that some sort of timer is required that will raise a method within my program at the specified interval, also how do I read in the argument on the command line.
Many thanks