问题
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
回答1:
There are several ways to do this: http://timgolden.me.uk/python/win32_how_do_i/watch_directory_for_changes.html
来源:https://stackoverflow.com/questions/8990551/watchdog-python-script-for-windows-file-system