0

I want to monitor addition and renaming of files in Windows using C++. I searched on Google but cant find any useful info.

I am open to using Winapi , boost or Qt.

user221458
  • 716
  • 2
  • 7
  • 17

2 Answers2

5

You can use File system watcher. See also:

which internally uses ReadDirectoryChangesW:

Community
  • 1
  • 1
Jochen Kalmbach
  • 3,549
  • 17
  • 18
2

The solution in Qt would be QFileSystemWatcher.

Frank Osterfeld
  • 24,815
  • 5
  • 58
  • 70
  • QFileSystemWatcher doesn't tell u the filename that was added/changed. Moreover that can't monitor recursively. – user221458 Feb 17 '14 at 15:31