Most of us knows about autorun but many of us doesn’t know about how it works. We have seen that when we insert some CD or DVD like Driver Disc or any other original Disc in computer it shows a window on the screen and along with a icon of it’s own, or even sometimes a programme gets run automatically when we insert a disc in the computer, and even when we open My Computer and see the Removable Drive we can see a Icon after inserting the Disc, but when we burn a disc then we can’t see anything if we insert the same, I mean no special Icon no autorun with for programme. We can even make our Pendrive autorun enable and also give them a Special Icon as per our choice. We can make CD, DVD, Pendrive Autorun enable with the same procedure for all
- Open Notepad (Start > All Programs > Accessories > Notepad)
- Type the following :
[autorun]
icon=myicon.ico
open=mybatchfile.bat
action=Click On OK Button To Run mybatch.bat
- Save the file as autorun.inf
- You will see a .inf file called autorun on the location where you have saved it
- copy this file to the CD, DVD, Pendrive that you wanna make Autorun enable
- Copy the Icon file on your CD/DVD/Pendrive and name it as “myicon”
- Copy Batch File into your CD/DVD/Pendrive that you wanna run
Now if to make your CD/DVD/Pendrive to open a Programme without going into the drive when Clicked on the Removable drive through My Computer, then just add a extra line to it
[autorun]
icon=myicon.ico
open=mybatchfile.bat
action=Click On OK Button To Run mybatch.bat
shellopencommand=mybatchfile.bat
Now if we want to open a Webpage instead of a Programme when clicked through My Computer, suppose we want Techno Genome which has got the url “http://www.technogenome.blogspot.com” then just modify the last line
[autorun]
icon=myicon.ico
open=mybatchfile.bat
action=Click On OK Button To Run mybatch.bat
shellexecute=http://www.technogenome.blogspot.com
shellexecute=http://www.technogenome.blogspot.com
***Always Copy all of the files above said in the root directory of your CD/DVD/Pendrive, don’t copy those files under any folders in your CD/DVD/Pendrive
Example :-
If your CD/DVD/Pendrive is assigned as H: then copy all the files into H:
Not into any folder of your CD/DVD/Pendrive like H:ABC
*** Here I’ve just given a example as myicon.ico, mybatchfile.bat. But you can give any .exe or.bat or other Programs and any Icon. Just Change the name in the .inf File while you are creating it or you can also modify a existing .inf file by opening it with Notepad and saving the changes. Always keep the Icon and Program file name same that you put in the CD/DVD/Pendrive with the one in that autorun.inf, or otherwise the Autorun function won’t work
*** You can only use .ico file as Icon, You can get lots of .ico file from Internet.
Nice one here!…but please what if i wanted an animation as my Autorun? I mean something like a company logo with animation after inserting the drive in my computer. In my own case i'm using a flash drive. How do i go about this? Thanks.
Just Replace the myicon.ico file with your logo but in .png or .ico format and with required resolution. just read the above again.