To create a custom icon for your USB drive, use the icon option. Once the autorun.inf file is saved, the flash drive autoplay will look something like this: When your autorun file is done, save it as autorun.inf.
The second option that we add is the message the user is prompted with. So, if we wanted to run a program called MyProgram.exe, you would add the this to your autorun.inf file: The first is open which specifies the program that you can run automatically with AutoPlay. There are two options that work in concurrence with AutoPlay. Each of these options is in the following format:Īutoplay allows you to set up what file is run when the USB drive is plugged into the computer. It always starts with a section header of:īelow this header is a list of different options. The autorun.inf file is a simple text file that can be opened up in any text editor (e.g. But this feature works fine in Windows Vista, Windows XP, and older OS.
Note: Autorun feature does not work in Windows 7 any more, Microsoft has disabled it due to security reasons.
The purpose of this article is to shed some light on how this can be done. The autorun.inf file is the key to getting your USB drive to perform certain actions automatically and customize it’s look in My Computer. It is possible to auto run the programs and applications from your removable USB flash drive like the autorun feature in CD/DVD drives. Do you want that a certain program should run when you insert your USB flash drive? Or do you want to add a custom icon for your flash drive? If the answer to any of the question is yes, then you have come to the right place.