简体   繁体   中英

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. Perhaps a C file to install the necessary things onto the computer, or the necessary files on the 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. 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. Unpatched Windows XP was probably the last time autorun worked "properly".

You may still add the autorun.inf entries to display your additional commands in the context menu but this will require user interaction.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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