DIGIT-ARC read-only archive · snapshot: July 23, 2026

how to create autoplay in cd and dvd..

3 posts · originally from https://geek.digit.in/community/threads/how-to-create-autoplay-in-cd-and-dvd.89211/

V
vijay_ss2004 Original post #1
May 30, 2008 at 1:48 PM
how to create autorun in cd and dvd . i know softwares for tat but i dont know how to create using programming and commands.......pls say how to do.........thanks in advance................!
Amir.php
May 30, 2008 at 2:27 PM
1. Open notepad
2. paste following lines into this:
[Autorun]
open=setup.exe
icon=setup.exe,0
3. Here setup.exe is the name of the .exe file which we want to autorun.
4. save it with the .inf extension on the same folder where your .exe file is exist(the .exe file which you want run automatically).
5.Now burn your entire folder on the CD/DVD.

After burning when you insert it into drive, the cd will run automatically with your specified .exe.
dheeraj_kumar
May 31, 2008 at 9:48 AM
^^ Yep, that covered it, I have some extra stuff too:

You dont really need the icon= line. Its only for loading extra icons, or a specific icon from the exe file. And one more very important thing he forgot is:

Save the file as "autorun.inf". And write the autorun.inf to the ROOT folder of the cd/dvd!!! this is very important, as windows checks for this file on the root folder only.

eg:
Right -
<cd>:\autorun.inf
Wrong -
<cd>:\Program\autorun.inf

But you can have your program anywhere. If your program is within a folder, use

[Autorun]
open=foldername\something\program.exe

Dont mention your drive letter in the path, since drive letters differ from comp to comp.