简体   繁体   English

从 Windows 设备上的 USB 驱动器自动运行

[英]Auto running from a USB drive on a windows device

I need to run my code from a USB, without python or the necessary packages for it to work.我需要从 USB 运行我的代码,而不需要 python 或它工作所需的软件包。 Perhaps a C file to install the necessary things onto the computer, or the necessary files on the USB.也许是一个 C 文件,用于将必要的东西安装到计算机上,或者 USB 上的必要文件。 But i'm not sure how to go about this.但我不知道该怎么做。 It needs to autorun the file,, as soon as its plugged in.它需要在插入后立即自动运行文件。

Autorun has been severely crippled in recent years, especially USB sticks.近年来,Autorun 已严重瘫痪,尤其是 USB 记忆棒。 For the exact same reason you want to use it, it is simply too easy to walk up to a machine and plug in a USB stick when nobody is looking and automatically install some kind of malware.出于完全相同的原因,您想使用它,当没有人在寻找并自动安装某种恶意软件时,走到一台机器并插入 USB 记忆棒实在是太容易了。 Unpatched Windows XP was probably the last time autorun worked "properly".未打补丁的 Windows XP 可能是最后一次自动运行“正常”工作。

You may still add the autorun.inf entries to display your additional commands in the context menu but this will require user interaction.您仍然可以添加autorun.inf条目以在上下文菜单中显示您的附加命令,但这需要用户交互。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM