Monitoring a directory for new file creation without FileSystemWatcher

前端 未结 8 548
臣服心动
臣服心动 2021-01-31 06:51

I have to create a Windows service which monitors a specified folder for new files and processes it and moves it to other location.

I started with using FileSyste

8条回答
  •  一生所求
    2021-01-31 07:24

    1) Sounds like your boss is an idiot
    2) You will have to use functions like Directory.GetFiles, File.GetLastAccessTime, etc and keep it in memory to check if it changed.

提交回复
热议问题