Autorun an HTML file from USB pen drive?
July 26, 2008 6:23 PM
Subscribe
How to autorun an HTML file from a USB pen drive?
I am creating an HTML presentation to put on a USB pen drive/laser pointer. It will be a marketing tool, given to customers and contain information regarding our company. I want the index.htm page to open automatically when the drive is inserted into a USB port. I thought I could simply create an autorun.inf file, even tried that and a launch.bat file, but it didn't work. What am I doing wrong here? Is this even possible?
posted by momzilla to computers & internet (5 comments total)
3 users marked this as a favorite
Now make sure your Autorun.inf file has content similar to this:
[Autorun]
Open=mybatchfile.bat
Action=Start Presentation
You can include more fields like one for an icon and one to label the drive by they arn't needed. Place this in the root of the flash drive.
Next, your mybatchfile.bat should also be in the root of the flash drive and have content similar to this:
start presentation.html
The presentation.html file should be in the root of the flash drive.
Now insert the flash drive into the computer that will run the presentation. You should get the window asking what you want to do. Click Start presentation and it should run the batch file and open the html file.
posted by ChazB at 7:00 PM on July 26, 2008 [1 favorite has favorites]