Economy-x-Talk - Sample Scripts
Autorun CD
When someone inserts the CD into a Windows PC, it should automatically run a file (assuming AutoRun is enabled and functioning). This is accomplished with the AUTORUN.INF file. It must be prepared on the PC side, because PC-ANSI line endings must be used otherwise AUTORUN will fail. In other words, dont use the Mac to create the following file, and dont edit it on the Mac either. Heres my AUTORUN.INF file:
[autorun]
label=E3Expo Prospectus
icon=_data\E3Video.ico
open=E3ExpoProspectus.EXE
Notes:
*
label is the name of the CD as it will appear in My Computer. This is different from the CD-ROM Volume Name. It may contain spaces and be over 16 characters (unlike the CD-ROM Volume Name). This may be a feature only available on Windows XP.
*
icon is the pathname to an icon to use for the CD-ROM, as it appears in My Computer. Here its pointing to a directory called _data. The E3Video.ico file contains Icon resources created with an Icon Editor. In my case, the program I used was The IconFactorys IconBuilder XP.
*
open is the program to run. The pathname may not have any spaces in it. You can also select an icon to show, if its embedded in the EXE, if youre not using the icon entry by appending a comma followed by a number. To do this you would have to build the icon into the EXE resource, which requires other development tools on the PC to do.
Youll note that theres three files listed: The _data folder, the AUTORUN.INF file, and the projector itself E3ExpoProspectus.EXE. The average person may not know which file to click on to run it, should AutoRun fail to work on their computer. Fortunately, we can hide all the files except for the projector using the Toast 7 ISO Layout Tools.
[autorun]
label=E3Expo Prospectus
icon=_data\E3Video.ico
open=E3ExpoProspectus.EXE
Keep this extensive resource of tutorials and samples on-line! Support RunRev.info!
| Yes, this script is useful. I make a donation and choose freely how much I want to donate on-line (PayPal). Click here if you want to make a donation in dollars. | This script has not (completely) solved my problem and I want Economy-x-Talk to take care of it. Let me contact you. |
Copyright©2002-2008 by Mark Schonewille, Nijmegen, the Netherlands. This web site is in no way affiliated with Runtime Revolution Ltd., but we do recommend the Revolution development platform.