How To Make An Autorun File

Table of contents:

How To Make An Autorun File
How To Make An Autorun File

Video: How To Make An Autorun File

Video: How To Make An Autorun File
Video: How to Make an Autorun.inf File [Tutorial] 2024, April
Anonim

The solution to the problem of creating an autorun file (AutoRun.inf) can be found in using standard tools of the Microsoft Windows operating system or using additional specialized software. The choice depends on the preference of the user.

How to make an autorun file
How to make an autorun file

It is necessary

  • - AutoPlay Menu Studio;
  • - MakeCDROM;
  • - Tarma Software Research

Instructions

Step 1

Click the "Start" button to bring up the main menu of the Microsoft Windows operating system and go to the "All Programs" item to initiate the procedure for creating the AutoRun.inf autorun file.

Step 2

Expand the Standard link and select Notepad.

Step 3

Create a new text file named AutoRun.inf and value:

[autorun]

open = program_name.exe

icon = image_name.ico.

Place it in the root directory of the desired drive.

Step 4

Specify the path to the executable file of the required program when saving this file in any other directory except the root one:

[autorun]

open = dir_folder / program_folder / program_name.exe

icon = image_name.ico.

Or select the required argument (if necessary):

[autorun]

open = program_name.exe / argument

icon = image_name.ico.

Step 5

Use the following syntax for the AutoRun.inf file when opening PDF or presentation files:

[autorun]

open = autorun.bat.index.htm

icon = image_name.ico.

In this case, the generated autorun file launches the DOS batch file, which in turn opens the files to be displayed using the program designed to open such files by default. The DOS batch file code must contain the following value:

echo off

@ start% 1% 2% 3% 4% 5% 6% 7% 8% 9

Step 6

Choose an alternative way to execute the same script using the ShellExecute command:

[autorun]

ShellExecute = index.htm

icon = training.ico

Or take advantage of the automation and ease of creation of an autorun file provided by specialized applications AutoPlay Menu Studio, MakeCDROM or Tarma Software Research.

Recommended: