How to create a CD autorun file
If you have produced the contents for your CD and then want them to autoplay when the disc is loaded into a computer then you should add an autorun file to the CD. An autorun file is a simple text file that tells the operating system which executable file to start.
There are two main types of autorun file that you could use:
Autorun using the 'open' command
The open command is compatible with any PC running Windows 95 or later (although it is possible to manually disable the autorun feature on any computer, so if someone cannot view your autorun application then this may be a reason). However it can only be used for opening executable files ending in .exe such as Flash presentations, it cannot be used for opening documents such as Word files, PDFs or web pages. To open documents rather than executable files using autorun please look at the shellexecute command instructions below.
The icon for the autorun file looks like the one below and the text file is called autorun.inf
Autorun using the 'shellexecute' command
The shellexecute command is more flexible than the open command and will allow you to open nearly any file on a PC in its native application, so can be used for PDFs, Word files, web pages and movies where the open command would not work. However this function was only introduced by Microsoft in Windows 2000 and so will only work in Windows 2000, Windows Me, Windows XP, Windows Server 2003, Vista, Windows 7 and later.
The icon for the autorun file looks like the one below and the text file is called autorun.inf
Notes about autorun files
Do not use any spaces in the file name of the document or exe file that you are linking to, always replace spaces with underscores (e.g. my_presentation.pdf ), otherwise the autorun will not work.
The autorun.inf file should always be in the top level (root folder) of the CD and not placed within a folder.
For PowerPoint presentations you do not need to create an autorun file and should use the autorun feature built-in to PowerPoint (found under 'Publish' and then 'Package for CD').