6

I would like to write a small notification script using python watchdog for windows. The script should do - watch a directory and when ever file is created - trigger an exe passing filename as argument.

This says for windows you need "lot of luck!!!" http://packages.python.org/watchdog/installation.html#installation-dependencies How reliable or easy that would be ? Anyone tried such stuff with windows python ..any suggestions ? http://pypi.python.org/pypi/watchdog

Juuso Ohtonen
  • 8,826
  • 9
  • 65
  • 98
webminal.org
  • 44,948
  • 37
  • 94
  • 125
  • possible duplicate of [How do I watch a file for changes using Python?](http://stackoverflow.com/questions/182197/how-do-i-watch-a-file-for-changes-using-python) – Piotr Dobrogost Jan 24 '12 at 18:20
  • Also duplicate of: [Detect File Change Without Polling](http://stackoverflow.com/questions/5738442/), [Watching for file changes within a directory](http://stackoverflow.com/questions/8375588/) – Piotr Dobrogost Jan 24 '12 at 18:22

1 Answers1

5

There are several ways to do this: http://timgolden.me.uk/python/win32_how_do_i/watch_directory_for_changes.html

Juuso Ohtonen
  • 8,826
  • 9
  • 65
  • 98