Hackers Heaven

Sunday, October 9, 2011

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.