Relative Content

Tag Archive for powershellfilesystemwatcher

Powershell error when using FileSystemWatcher

I wrote code with the WPF window to synchronize files between two folders. After clicking the Run button, the code will run and monitor changes in folder f1. If a change is detected, it will execute the condition with f2. However, after I pressed the run button, nothing happened, WPF froze and had to be turned off. Please tell me what I did wrong and how I should fix it? Sincerely thank you!