Three methods to create a CD for automatically running HTML files

Source: Internet
Author: User
The key to making an automatic running CD is to compile the autorun. inf file. The method to automatically run the executable file is very simple, but it may not be how to make autorun. inf that automatically runs the HTML file? The following describes three methods for automatically running HTML files.

First: Use third-party Application Files
Set the followingCodeWrite to notepad, but save it as auotrun. inf:

[Autorun]
Opentracing shelexec.exe index.html

The file shelexec.exe is a third-party application file. It not only supports running HTML files, but also supports calling txt, Doc, JPG and other files.
The latest version is v1.14, download address: http://www.naughter.com/shelexec.html shelexec

Type 2: Use wsh

Wsh (Windows Scripting host) is one of the Microsoft Script Technology series. It uses a script engine to explain and execute scripts, such as Microsoft VBScript and JScript. Next we will compile a simple VBScriptProgramTo call HTML files.
Autorun. vbsSource code:

Dim wshshell
Set wshshell = wscript. Createobject ("wscript. Shell ")
Wshshell. Run ("index.html ")

Then write the auotrun. inf file:

[Autorun]
Opentracing wscript.exe Autorun. vbs

Third: directly run html
For Windows 2000/XP/2003 operating systems, the auotrun. INF code can be written in the following method:

[Autorun]
Shellexecutew.index.html

For Windows 95/98 operating systems, the auotrun. INF code can be written as follows:

[Autorun]
Open = start index.html

The above three methods can be used to automatically run HTML files. If you consider the compatibility of the operating system, the first method is the best. If you pay attention to convenience, you can use the third method.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.