0

I want to save my html file to a cd / dvd, and if the cd is inserted to the PC, the html file should be automatically open in a browser without pressing any button.

I hope anyone can help me with this, thanks a lot.

<html>
    <body>
        <h1>Hello world!</h1>
    </body>
</html>
Jojo
  • 117
  • 2
  • 3
  • 10
  • 2
    Possible duplicate of [How to make an html page open automatically on a CD/DVD](http://stackoverflow.com/questions/735412/how-to-make-an-html-page-open-automatically-on-a-cd-dvd) – Kake_Fisk May 04 '16 at 08:42

2 Answers2

1

You need to create autorun.inf file in the root of cd and then you need to add parameters to this file.

The limitation is that not every operating system will allow you to open documents. It is meant to sun exe files.

If you write something like this in autorun.inf it will work only on some versions of Windows OS:

[autorun]
open=start index.html

Here is an article with explanations: http://www.autoruntools.com/autorun-inf.php

Nick Surmanidze
  • 1,671
  • 1
  • 11
  • 20
0

create autorun.inf file in the CD's root directory:

and add following :

[autorun]
shellexecute=path\index.html
Nirpendra Patel
  • 659
  • 7
  • 20