Search code examples
htmldvdcd

How to make an html page open automatically on a CD/DVD


I need to include an html page (table of contents) on a CD/DVD. I'd like the html page to open automatically when the user puts the CD/DVD in their machine. Is there a way to do this (the MSDN cds do this) either by purchasing software or otherwise?


Solution

  • I used (the free version of) AutoRunPro

    I remember when I was confronted with the problem once

    [autorun]
    shellexecute=path\to\htmlfile.html
    

    just wouldn't work on most PC's. I used a program called AutorunPro.EXE, just copied it in the root, and the autorun.inf was :

    [Autorun]
    open=AutoRunPro.exe
    
    [AutorunPro]
    ; Here are some sample uses for Autorunpro. It keeps processing Them in Run1..RunN         order until it doesnt find one.
    Run1=index.htm
    Run2=.
    

    Moreover, you can open several programs, pages, ... with this method in one go.

    In either case : test your method beforehand, you don't actually have to burn a CD/DVD in order to do that : look here