3 ways to create an optical disk that runs an HTML file

xiaoxiao2021-03-06  42

The key to making the automatic running CD is to write autorun.inf files, the method of automatically running executable is very simple, but maybe not how to automatically run the HTML file Autorun.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 file Shelexec.exe is a third-party application file, which is not only supported Run HTML files, also support calls to run TXT, DOC, JPG and other files. The latest version is V1.14, downloaded address: http://www.naughter.com/shelexec.html shelexec 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 WSHSHELLSET WSHSHELL = WScript.createObject ("wscript.shell") wshshell.run ("index.html") then write auotrun.inf file: [Autorun] open = wscript.exe autorun.vbs third Type: Direct 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 system, the code of Auotrun.inf can be followed Method Writing: [Autorun] open = start index.html All three methods can be used to automatically run the HTML file, if considering the compatibility of the operating system, the first method is best, if it is convenient, A third way can be used.

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

New Post(0)