Creating an Autorun.inf file

Last update on October 31, 2009 05:23 AM by jak58
Published by jak58

Creating an Autorun file





Allowing autorun


Windows provide users with simple utility that runs automatically applications found on a CD, when inserted in the CD drive.
To make use of this option, you must verify that it is enabled under your system configuration. If it is the case, upon inserting a CD or DVD,Windows will try to open an application.This procedure is due to the "Autorun.inf" (primary instruction file associated with the Autorun utility) found at the root directory of the CD.

Creating an Autorun.inf file


First create a new (text-only)file a name it as autorun.inf.once created open it with your favourite text editor(notepad)and type in the following syntax:

[autorun]

parameter=value


Basically it should like that:
[autorun]

open=myapplication.exe

Variations


If the selected application is found in a sub folder, the path must be specified:

[autorun]

open=folderA\folderA1\myapplication.exe


If an argument is to be passed for the application to be auto played:

[autorun]

open=myapplication /argument

Customizing the icon


If you want to change the default icon add the following syntax:

icon=icon.ext


Example:

[autorun]

open=myapplication.exe

icon=myicon.jpg



The icon file should also reside in the root directory of the CD.

Customizing the icon text


Simply add the following command line:

label=My application

Customizing the icon menu


To edit the menu that appears when you right-click on the icon simply add the following syntax:

shell=start shell\start\command=path/myapplication.exe 

shell\start=Run Application

shell\read\command=notepad++.exe files/readme.txt 

shell\read=open readme.txt 


Keep in mind that the following parameters shoul be defined: shell\*\command and shell\* ,as they are the keywords, firstly for defining the application to be executed and secondly, for the text displayed in the menu.
Best answers for « Creating an Autorun.inf file » in :
How to remove autorun.inf from your flash drive? Show How to remove autorun.inf from your flash drive? Issue Solution Issue The autorun.inf file is a worm which spreads all over your partitions by creating a copy of itself and comes usually comes from USB flash drives . It won’t let...
Creating an empty file ShowCreating an empty file To create an empty file, type the following command: > file You can also use the touch command: touch file
How to create a PPS file ? ShowHow to create a PPS file? A PPS file is a presentation (PPT extension) that the extension has been amended so that it can be opened independently. To create a PP
Create and Open a RAR file ShowCreate and Open a RAR file *How to create a RAR file *How to open a RAR file RAR is an archive file format that is used during data compression, error recovery and file spanning. RAR is the acronym for Roshal Archive, inspired by...
Download Autorun Action Menu ShowAutorun Action Menu is a tool to create autorun menu for CD-ROM. When the CD is read for the first time, a menu button appears on the corner of the screen. The menu button is the command where you can assign images. Advantage The program offers...
Download LC ISO Creator ShowLC ISO Creator is very simple: it allows to create a .ISO file from your CD. Then, it allows you to burn these ISO files, to use CD emulation software (in order not to use any more the original CD) or to make a backup copy. The software is...
Download Compact Disc Autorun ShowFor launching of your DIVX CD, more need to download software which eats all your resource. CD Autorun is a tiny very simple reader of launching of CD DIVX. The whole considers in a practicable only one to be two different functions: consultation and...
Autorun - autorun.exe Showautorun - autorun.exe The process autorun.exe (autorun) is a generic Windows 98/NT/Me/2000/XP process which automatically runs a program from a CD-ROM when the CD is inserted in the disk drive. The process autorun is not in any way a virus, a...
Linux - Tree structure of files ShowFile hierarchy under Linux To ensury compatibility and portability, Linux systems comply with the sole FHS (File Hierarchy Standard) standard. The basic hierarchy is as follows: /the root, containing the main directories /bincontains...