Welcome to my blog, hope you enjoy reading
RSS

Wednesday 16 March 2011

Autorun.inf is a Plain Text File



One of the main reasons for the creation of autorun function is to facilitate the installation of software for general users. Suppose you buy a software product on CD / DVD and want to do the installation, you simply insert the CD / DVD into your computer CD-ROM/DVD-ROM drive, it will show a step and display the installation program that is easily recognizable common user. Autorun introduced since the release of Windows 95.

On the CD / DVD automatically run a particular program, you will find a file named "autorun.inf" which is located on the main directory (root directory) CD / DVD. This file contains the instructions / commands to run the program. Not only that, the command contained in the autorun.inf also can serve to change the drive icon, or add the option / shortcut to the context menu (context menu popup menu that appears is context-sensitive applications through user interaction, such as right-click the drive / folders .) Special, autorun.inf file is a simple text file that can be created by anyone using a text editor such as NotePad. Here's one example of the contents of the autorun.inf file:

[Autorun]
Open = setup.exe
Icon = setup.exe, 0
Label = Installation Program

If the file autorun.inf on top along with the setup.exe file (the programs are launched), placed on a flash disk, and then installed on computers that enable AutoRun, then the AutoPlay will show a context menu that automatically exit.
Here's a brief description of the contents of the autorun.inf. The first line, the [autorun] is a section which must exist in the autorun.inf to function. A section contains certain commands. Examples of open, icons, labels. The meaning of each command are:

1. Open
As in the example open = setup.exe, this command is to determine what application is run when the disk is inserted in the drive. Syntax is open = [exepath \] exefile [param1 [param2 ...]]. So, you can define the path and parameters if necessary.

2. Icon
Determine what the icon will appear on the drive, replace the standard drive icon shown in Windows Explorer. Syntax are icon = iconfilename [, index, where iconfilename can be a file icon (*. ico) or executable files that contain icons. If it says icon = setup.exe, 0, it means that the icon was taken from the resource icon contained in the file setup.exe. Amgka index 0 indicates the first icon (because they may be there are some icons in the resource file.)

3. Label
Syntax is pretty simple: label = text, where text is a string that represents the drive appear in Windows Explorer.

2 comments:

byodbuzz04 said...

A Plain Text Editor
Plain Text files
That's right, if you're writer on a budget, you don't need to spend any money buying expensive writing software or apps. Instead, you can use the text editor that comes free with your operating system.
Just open up Notepad on Windows or TextEdit on a Mac. I like plain text editors for writing something short quickly and easily, without thinking much about it. I wrote a blog post about the benefits of using plain text editors as writing software.
Use for: writing whatever, wherever

byodbuzz04 said...

A Plain Text Editor
Plain Text files
That's right, if you're writer on a budget, you don't need to spend any money buying expensive writing software or apps. Instead, you can use the text editor that comes free with your operating system.
Just open up Notepad on Windows or TextEdit on a Mac. I like plain text editors for writing something short quickly and easily, without thinking much about it. I wrote a blog post about the benefits of using plain text editors as writing software.
Use for: writing whatever, wherever

Post a Comment