用于 Windows 文件系统的看门狗 Python 脚本 [英] Watchdog Python script for Windows file system
问题描述
我想使用 python 看门狗为 Windows 编写一个小的通知脚本.脚本应该做 - 观察一个目录,当文件被创建时 - 触发一个 exe 传递文件名作为参数.
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.
这表示对于 Windows,您需要多多的运气!!!"http://packages.python.org/watchdog/installation.html#installation-dependencies这将是多么可靠或容易?任何人都用 windows python 尝试过这样的东西..有什么建议吗?http://pypi.python.org/pypi/watchdog
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
推荐答案
有几种方法可以做到这一点:http://timgolden.me.uk/python/win32_how_do_i/watch_directory_for_changes.html
There are several ways to do this: http://timgolden.me.uk/python/win32_how_do_i/watch_directory_for_changes.html
这篇关于用于 Windows 文件系统的看门狗 Python 脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!