Friday, September 28, 2007

How to make the autorun.inf file for automatic loading of CDs and DVDs?

Make the autorun.inf file for automatic loading of CDs and DVDs
 
Basically, the configuration of the autorun.inf file determines which program is to be run when the CD or DVD or other optical media, including flash disk is inserted in the drive. This files is simply a tex-only file and it's very easy to go thru.
  • Open notepad ie a text editor (go to run >> type notepad)
  • Type the following command or copy-paste the code below
            [autorun]
            open=programname.exe
            icon=myicon.ico
   

Here, the icon file should also reside in the root directory of the CD/DVD.

Sometimes, if the program to run is not located in the root directory of the CD/DVD, simply change the path as:

            [autorun]
            open=mainfolder\subfolder\program.exe
            icon=myicon.ico
   
 
Advanced: If we need to pass an argument to the program that is tto be auto played, then use the code below:
            [autorun]<22 20 69b

 

0 responses:

Post a Comment

Thanking you for your comment(s). Hope you will visit this blog again!

Subscribe to geeklog feed Bookmark and Share

Design by Free blogger template