How To Write An Autorun

Table of contents:

How To Write An Autorun
How To Write An Autorun

Video: How To Write An Autorun

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

Autorun is a file with which the system automatically launches the contents of the storage medium. With the help of the author, any PC user can make sure that after the disk is mounted in the system, the file necessary for execution is launched. This is useful when creating menus to disk or when writing installation files for Windows.

How to write an autorun
How to write an autorun

Necessary

autoplay menu studio

Instructions

Step 1

To make an autorun disk in the root directory, create a file named "autorun.inf". To do this, right-click on the desktop and select the "New" menu - "Text file". Enter the appropriate name and press Enter.

Step 2

Open the created file using notepad (right-click on the file - "Open with …" - "Notepad"). Add the following lines: [autorun]

ICON = icon.

OPEN = autorun.exe (path to the file that will need to be launched when the disk is mounted on the system)

Step 3

This method allows you to run.exe,.com and.bat programs, as well as scripts written in VisualBasic. If you automatically need to open some html page, which will be your menu, you will have to create a.bat program. To do this, select the "File" - "New" menu again and name the document "autorun.bat". Open it with notepad and write "Start% 1". Modify autorun.inf as follows: [autorun]

ICON = icon.png

OPEN = autorun.bat page.html

Step 4

You can not write a bat-file, but immediately draw the conclusion: [autorun]

ICON = icon.png

OPEN = start “page.html”

Step 5

To create self-starting discs with music, which will automatically open in the player after mounting, you can use specialized utilities. The Autoplay menu studio program does a good job of creating a high-quality menu for playing music. It has an intuitive interface and wide functionality. When launching the application, select "Create a new project". A blank of the future menu will open in the window that appears, which can be adjusted to suit your own needs and decorated to your taste. After the menu is styled, select the Build command of the Project menu. Specify the name of the executable file. Burn the menu to disc. The autoran is ready.

Recommended: