By default, the Script file recorded by the machine saves the files in the Local / Server Path folder, but due to a network problem, both folders are not synchronized. I skipped the C # window maintenance program using FileSystemWatcher, DiffEngine, System.Timers and PingService, as shown below, to handle this. To monitor the local OnChange Event folder, the Ping IP address is successful or unsuccessful before comparing / copying to the server path, when the Ping Fail is sent to the logtemp folder, the system timer processes this and Ping again before deleting the logtemp files again.
I do not know how to use threads for this. Where should my system timer be when ping fails?
protected override void OnStart(string[] args) {
source share