Got this question via SMS:

“How can you launch an HTML file automatically when you insert a CD-ROM to a computer?”

The solution is very easy. Let’s say, you created a website that you intended to be distributed both in web and CD-ROM formats. The problem is that not all people who will get hold of the CD-ROM are not techie enough to launch the website and actually view it. The best way to “force” them in viewing the contents of the CD-ROM is to have an auto-run mechanism.

Open the ever-reliable Notepad, and type the following:

[autorun]
ShellExecute=index.html


Save the file as “autorun.inf“. Remember to select “All Files” from the Save As Type in the Save As dialogue box. Put this file on the root folder of your CD-ROM data.

The code above will instruct the computer to automatically launch the file named “index.html” when the user inserts the CD-ROM.


ABOUT THE AUTHOR

Robert “Bob” Reyes is a technologist, an IT Consultant and Tech Speaker, a certified Google IT Support Specialist, and an Open Source advocate representing the global non-profit Mozilla (makers of Firefox) in the Philippines. Bob is a Technology Columnist for the Manila Bulletin Publishing Corporation and an aviation subject matter expert contributor for Spot.PH.

Follow The Filipino Tech Explainer on Facebook and X/Twitter.

If you liked my articles or any of the contents or if The Filipino Tech Explainer has helped you in any way, you can buy me a coffee and share your thoughts. Help me continue producing awesome articles by supporting my website. Maraming salamat po! Thank you very much!

What’s your Reaction?
+1
0
+1
0
+1
0
+1
0
+1
0
+1
0
+1
0

Leave a Reply