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.

Author: Mozil Arashitaxe
Country: Qatar
Language: English (Spanish)
Genre: Love
Published (Last): 14 July 2016
Pages: 358
PDF File Size: 16.99 Mb
ePub File Size: 2.77 Mb
ISBN: 844-5-82674-291-1
Downloads: 94448
Price: Free* [*Free Regsitration Required]
Uploader: Kijin

If it is a data file, it must be a member of a file type. If it is an executable file, it is launched. These instructions are also required if your CD might be viewed by non-Windows users. The shellexecute command is more flexible than the open command and will allow you to open nearly any file on a PC in its native application, so can be used for PDFs, Word files, web pages and movies where the open command would not work.

There is no way to force your users to use AutoRun. Specifies the command that is to be autorun when the CD is first inserted. The folder names are always taken as absolute paths a path from the root directory of the media whether or not a leading slash is used. IgnoreContentPaths takes precedence over ExclusiveContentPaths so if a path given in a [IgnoreContentPaths] section is a subfolder of a path given in an [ExclusiveContentPaths] section it is still ignored.


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.

This article needs additional citations for verification.

Creating an AutoRun-Enabled Application (Windows)

The label entry specifies a text label which represents the AutoRun-enabled drive in the Windows user interface. Therefore, do not use this format if you want to be sure that your data is available. It can then include any of the following optional commands – with each command placed on a separate line:.

Creating an AutoRun-enabled application is a straightforward procedure. The following example specifies the second icon in the MyProg. Shellexedute Your Answer Discard By clicking “Post Your Answer”, you acknowledge that you have read our updated terms of serviceprivacy policy and cookie policyand that your continued use of the website is subject to these policies.

The open entry specifies the shellfxecute and file name of the application that AutoRun launches when a user inserts a disc in the drive. This is because this method relies on the presence of a file named “Start. Any characters after the 32nd are truncated and not displayed.

This command allows you to create a virtual drive that is actually a folder on your physical drive. It can contain spaces and should be no longer than 32 characters. For example, if the LabelText autlrun.inf as follows: The autoru.inf line identifies the executable file shellexeckte performs the command. This parameter specifies the text that is displayed in the shortcut menu.


Windows will launch the application associated with that file type to open the datafile.

They should be composed in such a way that users can easily identify them. INF ‘ file must start with the autorun.inr line: Click OK and after this command you will find a new drive O: Specify a relative path no drive letters! Collapse the table of content. Let’s it be “C: There are two other – uncommon – ways of disabling AutoRun.

Sign up using Facebook. It must not contain embedded spaces.

Use of the CD-ROM AutoRun Functionality to Open HTML, PDF and Other Documents

INF is a simple text file – so use notepad to edit it. ShellExecuteEx launches the default command associated with the file type.

Configuration files Windows administration. If a path given in [IgnoreContentPaths] is a subfolder of a path given in [ExclusiveContentPaths]it is still ignored. Each section contains a series of commands that determine how the Autorun operation takes place.

By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service.