Make an CD that automatically runs HTML files

xiaoxiao2021-03-06  197

The key to the automatic operation of the Blog of Mu Yan is to write autorun.inf files. The method of automatically runs executable is very simple, but maybe not how to automatically run the HTORUN.INF? Let me introduce three ways to automatically run the HTML file. The first: use a third-party application file to write the following code to Notepad, but saved into Auotrun.inf:

[Autorun]

Open = shelexec.exe index.html

Shelexec.exe in the file is a third-party application file, which not only supports running HTML files, but also supports calls to run TXT, DOC, JPG and other files. The latest version is V1.14, downloaded address: http://www.naughter.com/shelexec.html second: using WSH WSH (Windows Scripting Host) is one of the Microsoft Script Technology Series, it uses one The script engine is performed on the script, such as Microsoft's VBScript and JScript. Let's write a simple VBScript program to call the HTML file. Autorun.vbs Sourcecodes:

DIM WSHSHELL

SET WSHSHELL = WScript.createObject ("wscript.shell")

Wshshell.run ("index.html")

Then write auotrun.inf file:

[Autorun]

Open = wscript.exe autorun.vbs

The third: directly run HTML For Windows 2000 / XP / 2003 operating system, Auotrun.inf code can be written in the following method:

[autorun]

Shellexecute = index.html

For Windows 95/98 operating systems, Auotrun.inf code can be written in the following method:

[autorun]

Open = start index.html

The above three methods can realize the purpose of automatically run the HTML file. If the compatibility of the operating system is considered, the first method is best; if it is very convenient, the third method can be used.

转载请注明原文地址:https://www.9cbs.com/read-128615.html

New Post(0)