is used to tell Windows how to autorun your CD or DVD. To autorun a document instead of a program, you should use shellexecute command. Looking into the file of an infected usb key by the Sality virus Conficker uses the shellexecute command in the file as. An file is a text file that can be used by the AutoRun and AutoPlay components of The “AutoRun task” is the application specified by the open or shellexecute keys. If an AutoRun task is specified it is executed immediately without.
|Published (Last):||9 March 2004|
|PDF File Size:||1.84 Mb|
|ePub File Size:||5.14 Mb|
|Price:||Free* [*Free Regsitration Required]|
This topic is a reference for the entries that can be used in an Autorun. An entry consists of a key and a value. The action entry specifies the text that is used in the Autoplay dialog for the handler representing the program specified in the open or shellexecute entry in the media’s Autorun. The value can be expressed as either text or as a resource stored in a binary. Text that is used in the Autoplay dialog for the handler representing the program specified in the open or shellexecute entry in the media’s Autorun.
A string that contains the fully qualified path of the directory that contains the binary file containing the string. If no path is specified, the file must be in the drive’s root directory.
An action command in the Autorun. The string displayed in the Autoplay dialog is constructed by combining the text specified in the action entry with hard-coded text naming the provider, provided by the Shell.
The icon is displayed next to it. This entry always appears as the first option in the Autoplay dialog and is selected by default. If the user accepts the option, the application specified by the open or shellexecute entry in the media’s Autorun. The Always do the selected action option is not available in this situation. The action and icon keys together define the representation of the application that is seen by the end user in the Autoplay dialog.
1st AutoRun Express
They should be composed in such a way that users can easily identify them. They should indicate the application to be run, the company that created it, and any associated atuorun.inf. For this type, a default entry is used in the Autoplay dialog if no action entry is present in the Autorun. If no action entry is present, the Autoplay dialog is displayed but with no option to launch the additional content. A text string containing the name of the AutoPlay content event.
The name must be no more than alphanumeric characters. You can include a custom event name in the Autorun. When AutoPlay prompts the user for an application to use with the volume, it displays only applications that have sheklexecute for the specified custom event name. For information on how you can register an application as a handler for your custom AutoPlay content event, see Auto-launching with AutoPlay or How to Register an Event Handler.
The icon entry specifies an icon which represents the AutoRun-enabled drive in the Windows user interface. If a file contains sheplexecute than one icon, you must also specify zero-based index of the icon. The icon, together with the label, represents the AutoRun-enabled drive in the Aytorun.inf user interface.
For instance, in Windows Explorer, the drive is represented by this icon instead of the standard drive icon. The icon’s file must be in the same directory as the file specified by the open command.
The label entry specifies a text label which represents the AutoRun-enabled drive in the Windows user interface. A text string containing the label. It can contain spaces and should be no longer than 32 characters. It is possible to put a value in the LabelText parameter which exceeds 32 characters and sheellexecute no autorun.ing message. However, the system only displays the first 32 characters. Any characters after the 32nd are truncated and not displayed.
For example, if the Shellexfcute is as follows: The label, together with an icon, represents the AutoRun-enabled drive in the Windows user interface.
The open entry specifies the path shellexecure file name of the application that AutoRun launches when a user inserts a disc in the drive. Auforun.inf qualified path of an executable file that runs when the CD is inserted. If only a file name is specified, it must be in drive’s root directory. To locate the file in a subdirectory, you must specify a path. You can also include one or more command-line parameters to pass to the startup application. To use this option, add an entry for UseAutoPlay to the Autorun.
When UseAutoPlay is used, any action specified by the open or shellexecute entries in Autorun. AutoRun is typically used to automatically run or load something contained on the inserted media, whereas Shellececute presents a dialog that includes a list of relevant actions that may be taken and enables the user to choose which action to take.
A CD contains three files: Depending on the version of Windows in use and autoruninf specified in Autorun. First, consider an Autorun. Once again, the action taken by the Shell autorun.inv this CD is inserted depends on the version of Windows in use.
The shellexecute entry specifies an application or data file that AutoRun will use to call ShellExecuteEx. A string that contains the fully qualified path of the directory that contains the data or executable file. A string that contains the file’s name. If it is an executable file, it is launched. If autorjn.inf is a data file, it must be a member of a file type. ShellExecuteEx launches the default command associated with the file type. Contains any additional parameters that should be passed to ShellExecuteEx.
This entry is similar to openbut it allows you to use file association information to run the application. The verb that corresponds to the menu command. The verb and its associated menu command must be defined in the Autorun. When a user right-clicks the drive icon, a shortcut menu appears. This command also executes when the user double-clicks the drive’s icon. Then use shell to make it the default shortcut menu command.
Otherwise, the default menu item text will be “AutoPlay”, which launches the application specified by the open entry. The menu command’s verb. Verbs must not contain embedded spaces. By default, verb is the shellexwcute that is displayed in the shortcut menu. This parameter specifies the text that is displayed in the shortcut menu. If it is omitted, verb is displayed. MenuText can be mixed-case and can contain spaces.
Autorun.inf – Commands
There are two parts to this entry, which must be on separate lines. It associates a string, called a verbwith the application to launch when the command runs. You can include it to specify the text that displays in shellexfcute shortcut menu.
The following sample Autorun. The menu text is “Read Me”, and ‘M’ is defined as the item’s shortcut key. There are three file type keys: If shellxeecute of these contents is set to true through one the case-insensitive values 1, y, yes, t, or true, the Autoplay UI displays the handlers associated with that content type regardless of whether content of that type exists on the media.
If one of these contents is set to false through one the case-insensitive values 0, n, no, f, or false, the Autoplay UI does not display the handlers associated with that content type even if content of that type is detected on the media.
Use of this section is intended to allow content authors to communicate the intent of content to Autoplay. For instance, a CD can be categorized as containing only music content even though it also has pictures and videos and would otherwise be seen as having mixed content. Folders listed in this section limit Autoplay to searching only those folders and their subfolders for content. In either case they are taken as absolute paths from the root directory of the media.
In the case of folders with spaces in their names, do not enclose them in quotes as the quotes are taken literally as part of the path. Use of this section is intended to allow content authors both to communicate the intent of content to Autoplay and to shorten its scan time by limiting the scan to certain significant areas of the media.
Folders listed in this section, and their subfolders, are ignored by Autoplay when searching a media for content. Paths in this section take precedence over paths in the [ExclusiveContentPaths] section.
If a path given in [IgnoreContentPaths] is a subfolder of a path given in [ExclusiveContentPaths]it is still ignored.
The DriverPath entry specifies a directory to search recursively for driver files. This command is used during a driver installation and is not part of an AutoRun operation. A path to a directory that Windows searches for driver files, along with all of its subdirectories.
To search multiple directories, add a DriverPath entry for each directory as in shellfxecute example. If no DriverPath entry is provided in the [DeviceInstall] section or the DriverPath entry has no value, then that drive is skipped during a search for driver files. Remarks You can include a custom event name in the Autorun. Remarks The icon, together with the label, represents the AutoRun-enabled drive in the Windows user interface.
The following example specifies the second icon in the MyProg. Note It is possible to put a value in the LabelText parameter which exceeds 32 characters and receive no error message.