Autorun.ini startup html

vb6 Norway
  • 14 years ago

    I have planned to make a cd containing html internett sides.
    And I want to have a autorun command on the cd.

    Normal cd's use the command:
    [autorun]
    open=setup.exe
    icon=myicon.ico

    , but I'll like to run a startpage instead. And ther is the problem, cause you cant just write autorun.ini like:

    open=index.html

    this is made of the simple thing that the autorun command cant start a program on the computer, only one at the cd, and therfor will the iexplore ore mozilla start the index.html

    So I need help to make a program to start the web page. only somthing easy like run.exe

    I have found one on the nett called "shellrun" (google), but I'll want to make my own versjon of the program¨

    Thanks for replys!!





















  • 14 years ago

    Hi tin tin

    there are 2 ways to to creat a CD will autorun your HTML files

    1/ windows shell

    2/ java script

    about windows shell write this in the .inf file

    [autorun]
    open=command /c start /max index.htm

    max means maximized html file and you have to know that this cd will only autorun on windows platforms

    about java scripts write this in the .inf file

    [autorun]
    ShellExecute=index.htm

    but in order to be maximized put the following script in your index html body

    <script language="JavaScript">
    <!--
    if (document.all || document.layers)
    {
      window.moveTo(0,0);
      window.resizeTo(screen.availWidth,screen.availHeight)
    } else if (window.screen) {
      window.moevTo(0,0);
      window.outerHeight = screen.availHeight;
      window.outerWidth = screen.availWidth;
    }
    //-->
    </script>











    the last one will work in non-windows platforms

    regards

    DoctorMahdi

  • 14 years ago

    Thanks for helping me DoctorMahdi.

    Your script works just as a dream..

     

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.”