Figi8Cake
Figi8Cake

Reputation: 1

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.

Upvotes: 0

Views: 310

Answers (1)

Anders
Anders

Reputation: 101589

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.

Upvotes: 2

Related Questions