I am trying to have my software run a command line instruction whenever a certain type of file is added to a given folder. So far I have the ability for a user to select the folder, and the path is saved to a string. I am just wondering if there is some kind of event that could be called when a change is made to that folder? (c#)
Asked
Active
Viewed 730 times
0
-
search for FileSystemWatcher – Ashkan Mobayen Khiabani Dec 20 '18 at 11:25
-
Haha yeah just found it :) – GigaJoules Dec 20 '18 at 11:27
-
Possible duplicate of [How do I detect when a directory or file changes without constant scanning](https://stackoverflow.com/questions/3215619/how-do-i-detect-when-a-directory-or-file-changes-without-constant-scanning) – Sinatr Dec 20 '18 at 11:27
1 Answers
0
I think what I was looking for is called 'File System Watcher' and a guide can be found here: https://www.youtube.com/watch?v=6lVormV8cb8

GigaJoules
- 53
- 9