Ever wondered how to create a dvd or pendrive which plays an application as soon as inserted ?
Yes I am talking about the way the branded dvd’s application open up for when the disc is inserted.
Try this out:
- Open notepad
- type [AutoRun] as the first line
- type OPEN=
- Type ICON=
- Now go to save as then give the name in double quote as “autorun.inf”
- Place this file in the root of you cd dvd or pendrive.
- then just burn it. You are done try amazing your friends.
A sample may look like this :
[AutoRun]
OPEN=autorun.exe
ICON=box_white.ico
Some tips :
- You can make your first letter of your name as the icon of pendrive.
- You can make your image open as soon as pendrive is inserted.
- You can auto start an application.
Below are some of the commands/entries in the Autorun.inf file described briefly.
A more detailed description can be found at the following Microsoft page: Autorun.inf Entries
OPEN =
The OPEN command specifies the path and file name of the application that AutoRun launches when a user inserts a disc in the drive. You can also specify parameters/arguments to the application.
ICON =
The ICON command specifies an icon which represents the AutoRun-enabled drive in the Windows user interface. The icon is normally an .ico file, but can also be a .bmp, .exe or .dll file containing icon information. The icon file must be in the same directory as the file specified by the OPEN command.
LABEL =
The LABEL command specifies a text label which represents the AutoRun-enabled drive in the Windows user interface. This text label is for example in Windows Explorer showed to the right or below the drive icon.
SHELLEXECUTE =
The SHELLEXECUTE command opens a document or starts an application. Mostly used to open documents automatically. Requires Windows ME/2000 or newer.
SHELL =
The SHELL command specifies a default command for the drive’s shortcut menu. The shortcut menu of the drive is the menu that is opened when the user right clicks on the drive icon.
SHELL\VERB =
The SHELL\VERB command adds a custom command to the drive’s shortcut menu. This custom command can for example be used to launch an application on the CD/DVD.
ACTION =
ACTION is a command that was introduced with Windows XP SP2. It is not supported in Windows before that. This command specifies a text that should be shown as the first option in the Windows Autoplay dialog, together with the icon specified by the ICON. This option is always selected by default and if the user accepts the option, the application specified by the OPEN or SHELLEXECUTE entry in the media’s Autorun.inf file is launched. As an alternative, the SHELLEXECUTE command can also specify a document instead of an application.
A more detailed description can be found at the following Microsoft page: Autorun.inf Entries
0 comments:
Post a Comment