Run task on drive connection or disconnection in Windows

Description

This script watches for Windows drive letter connection or disconnection events and allows scheduling of tasks to run accordingly. For example, this is useful if you want to run a program to synchronise the contents of a USB pen drive automatically when it is inserted.

Tasks can be configured in a human-readable JSON format configuration file. It installs itself as a service and is very, very alpha.

Requirements

  • The script should work in Python >= 2.6 and requires pywin32.
  • It has been tested on Windows 7 x64 only.

Source code repository: https://github.com/inversion/drive-letter-watcher


comments powered by Disqus