Skip to content

How to make a autorun CD/DVD?

March 16, 2009

You can make any of your CDs DVDs to run automatically. I will tell you how to make a CD or DVD to run automatically immediately when you start it. It is a very useful feature. Also this is the way many viruses enter into your PC.
Autorun.inf is simply an information file that is associated with the autorun function of a CD or DVD. It tells the operating system which executable to start, which icon to use, and which additional menu commands to be displayed. So in order to make a CD or DVD to run automatically then you need a autorun.inf file.

When you insert an CD or DVD into a drive then if the “Auto insert notification” feature is enabled , Windows checks in the new disk’s root directory for the existence of an “autorun.inf” file. If such a file exists then it will execute the commands written in that file.
Creating Autorun CDs/DVDs
An autorun.inf file can be used to create autorun CDS/DVDs.By creating such a file you can do the following:
1. Make a program or file in the CD/DVD to start automatically.
2. Use a custom icon for your CD/DVD instead of the default icon.
3. Manipulate the menu commands to be displayed when the user clicks on the icon.
Creating autorun.inf file.
A simple autorun file looks like this
[autorun]
open=autorun.exe
icon=autorun.ico

Here [autorun] is a directive that must be included.In the second line the keyword open describes which file is to be opened on autorun.The keyword icon is used to describe the image to be used as icon of your CD/DVD.
Adding additional menu items.
In order to add additional menu items to your disc you can use the shell command. The syntax looks like this shell\help=&Help
shell\help\command = notepad help.txt.
Here the first line shell\help=&Help
adds a new menu item named Help and the second line
shell\help\command=notepad help.txt
defines the operation to be performed when we click on this item.

I hope you enjoyed the post!

No comments yet

Leave a comment