AutoRun Flash drive

YoTypicalGaymer000

Prominent
Jul 27, 2017
12
0
510
I want it so when i plug in my flash drive it automatically runs a certain file how can that be done?
And i don't want it to work only on a specific device, because i dont own a compute and i do my work on Internet cafe's
 
Solution
USB AutoRun has been default OFF on PC's for several years now.
For good reasons.

True, but the choice-box that pops up will still ask if you want to run the autorun target. It's just easier click yes to the offer to run it than going in to Win explorer and look for it if a person wants to start it every time.
Use Notepad to make a small text file that looks something like this, but enter the name of your desired program:


[autorun]
open=Your Program.exe


Save it as autorun.inf


To have it named with the "inf" extension, at the point of saving, click the drop-down in the save file dialog box and select "all files" or it will save with a .txt extension that you can rename if that happens.

Add this file to your flash drive in the root directory.
 


USB AutoRun has been default OFF on PC's for several years now.
For good reasons.

And you can't control the settings on the internet cafe systems.
 
USB AutoRun has been default OFF on PC's for several years now.
For good reasons.

True, but the choice-box that pops up will still ask if you want to run the autorun target. It's just easier click yes to the offer to run it than going in to Win explorer and look for it if a person wants to start it every time.
 
Solution