Problem: Recently I had the need to use an Autorun to launch an HTML file from a CD. As you probably know, this is rather messy; the autorun, of course, expects you to launch an executable, not an HTML file. There are some sites on the internet that have some code to help resolve this, but it's easy enough to make an executable to launch the HTML file, yourself.
Solution: I created an AutoIt script with the following one liner:
RunWait(@ComSpec & " /c " & 'myHTLM.htm', "", @SW_HIDE)
I named the script file autorun.au3. Compiling the script into an executable is a simple right-click-and-choose-Compile Script. This created an executable named autorun.exe
Then I named my HTML file myHTML.htm and put the following 2 lines in an autorun.inf file:
[AutoRun]
open=autorun.exe
Burn the whole mess on a CD and that's it. Easy as cake, eh? .........
Tuesday, April 26, 2005
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment