how to create autoplay in cd and dvd..

Status
Not open for further replies.

vijay_ss2004

Broken In
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

Flying Visitor
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

Legen-wait for it-dary!
^^ 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.
 
Status
Not open for further replies.
Top Bottom