'Is there any way to run a program on detection of a Hard Drive or USB?
I have an Obsidian Vault housed on a hard drive that I take places to keep my thoughts organized. Is there any script or something I can use to detect when the hard drive is plugged in and automatically open Obsidian? Is there any way to do this using Python? I am on Windows 10.
Solution 1:[1]
Yes, PyUSB
provides for easy access to the host machine's Universal Serial Bus (USB) system for Python 3.
Check out:
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | alexL |