[英]Autorun python file when USB is conected
I want my python file (Stored in my USB drive) to run automatically when USB is connected to my pc我希望我的 python 文件(存储在我的 USB 驱动器中)在 USB 连接到我的电脑时自动运行
I have tried this我试过这个
[autorun]
open = MyFiles.py
saved it as "autorun.inf"将其保存为“autorun.inf”
But it's not working at all但它根本不起作用
This is not possible on any modern OS.这在任何现代操作系统上都是不可能的。 This is due to security concerns.这是出于安全考虑。 Thus, Autorun is no longer a possibility in Windows.因此,自动运行在 Windows 中不再可能。 The only way to automatically execute stuff on Windows/Linux/MacOS is to change the registry key on Windows or use a Rubber Ducky .在 Windows/Linux/MacOS 上自动执行的唯一方法是更改 Windows 上的注册表项或使用 Rubber Ducky 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.