How to Write an Autorun.inf File
- 1). Open Notepad by clicking on the Start menu and choosing "Accessories," then "Notepad." Create a new file in Notepad by clicking on "File," then "New."
- 2). Type the autorun command "[autorun]". Press "Enter" on your keyboard.
- 3). Type the "open" and "icon" commands on the next two lines. For example:
[autorun]
open=nameofprogram.exe
icon=nameoficon.ico
Do not capitalize "open" or "icon" or they will not be recognized by Windows. - 4). Change the "nameofprogram" and "nameoficon" to the names of your program and icon file.
- 5). Save the file as "autorun.inf" by clicking on "File" and "Save As." When the save box appears, type "autorun.inf" in the name box. Click "Save."