Tip & How-To about Computers & Internet

Create your own autorun CD or DVD




It is easy to create an autorun CD or DVD for Windows and all it takes are a few files (which we've supplied for free). The technique can be used to open other file types, but HTML is used for a reason: it is the most commonly supported by Windows (most PCs have a Web browser) and it is flexible. You could use it to open other files, such as a Powerpoint presentation, but it would require the end user to have Powerpoint or the Powerpoint viewer on their system.

The autorun zip file we've prepared contains everything you need to autorun a CD and open a HTML file. So download a copy - it's tiny and free - see above for the download link.

So why can't an autorun open a HTML directly? It is because a Windows autorun can only open an application (program) not a data file (eg HTML). You cannot tell an autorun to directly open a HTML file. Try it, and nothing will happen. To get around his problem, we are using a .bat file which Windows will treat as a program. This special file will then open the HTML file.


Assembling the CD
Download and copy the files to your root directory of the CD. These are: autorun.inf, autorun.bat and index.html. You can put all sorts of files on the rest of the CD. They won't affect the autorun. You can test the autorun by burning the three files to the root directory of a test CD-R. Open the CD drive and close it again. Viola, you have just created your own autorun HTML CD. You should change the contents of index.html to whatever you need. The index.html supplied is only a test page.

Changes you can make
The autorun can open any type of file and display any message you want. To make changes, open Windows Notepad (do not use Word, WordPad or other Word processors). Now open the autorun.bat file from within Notepad. The order is important, if you double-click the autorun.bat file, it will try to run. So open NotePad and select File-Open and choose the autorun.bat file. You'll see four lines of code.

The first line after @echo (remember the space) will appear as a comment in the autorun launch Window. This comment will be seen very briefly by your end-users. It can be changed to anything you want, but since it only appears for a second or less, don't make it too wordy. If you wanted to say 'The CD is loading now...', the first line of code will look like:

@echo The CD is loading now...

The second line of the code tells the .bat file to open to your index.html file. If want to open a file by another file (eg readme.txt), then it would read:

@start readme.txt

Make sure you leave the last two lines untouched (@cls and @exit) - they must always appear last. Save the changes and you are done. That that's all you need to create your own HTML autorun CD.

Posted by on

Computers & Internet Logo

Related Topics:

Related Questions:

1 Answer

CD html presentation-hyperlinks don't work with other pc's


To create an Autorun-enabled CD-ROM, proceed as follows:
  • Create an Autorun.inf File
    Autorun.inf is a text file that is located in the root folder of your application CD-ROM. It provides to the computer the name and the location of the startup program for your application that is installed when the CD-ROM is inserted. The Autorun.inf file can also contain optional information including the following:
  • The name of a file that contains an icon that represents your application's CD-ROM drive. This icon appears in Windows Explorer instead of the standard drive icon.
  • Additional commands for the shortcut menu that appears when the user right-clicks the CD-ROM icon. You can also specify the default command that runs when the user double-clicks the icon. Autorun.inf files are similar to .ini files.
  • The [autorun] section contains the default Autorun commands. All Autorun.inf files must have an [autorun] section.
  • icon: Specifies the path and the file name of an application-specific icon for the CD-ROM drive.
  • open: Specifies the path and the file name of the startup application.

Autorun.infThe following is an example of a simple Autorun.inf file. It specifies Filename.exe as the startup application. The second icon represents the CD-ROM drive instead of the standard drive icon.
[autorun]
open=Filename.exe
icon=Filename.ico

May 07, 2009 | Dell Dimension 4600 PC Desktop

1 Answer

how am i change of drive icons of window xp?(such as-c drive)


There are two ways to create a drive-specific icon. The first step for both is to determine the full pathname of the file containing the icon you want, as well as the index of the icon within that file. To view the icons contained in an EXE or DLL file, right-click any shortcut that links to a file (as opposed to a system shortcut like My Computer) and choose Properties. On the Shortcut tab of the resulting dialog, click the Change Icon button. Click Browse and select the file whose icons you want to peruse. When you find the one you want, count off the icons to determine the correct index. Start in the top left corner with zero and count down each column, then to the right. For example, icon 12 in C:\ Windows\System32\Shell32.dll is a picture of a memory chip. Make a note of the full pathname of the file and the icon index, then click Cancel, and Cancel again—you don't actually want to change that shortcut's icon. The Microsoft Windows files moricons.dll and progman.exe, both found in C:\Windows\System32, also contain numerous icons.
One technique for assigning a drive-specific icon uses a file named Autorun.inf in the root directory of that drive. Launch Notepad and enter [autorun] on the first line. Enter ICON= on the second line, followed by the full pathname of the icon-holding file, a comma, and the icon index. It might look like this:
[autorun]
ICON=C:\WINDOWS\SYSTEM\SHELL32.DLL,12
Save the file as "C:\autorun.inf" (you need the quotes to prevent Notepad from appending the .txt extension). Now restart the computer. When you open Windows Explorer, the drive should display its new icon.
The other technique involves editing the Registry. Launch RegEdit from the Start menu's Run dialog and navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\
CurrenTVersion\Explorer.
If a subkey named driveicons is present, open it; if not, right-click in the right-hand pane, select New | Key and name the key driveicons. Under the driveicons key, find or create a subkey named C (or the letter of the drive whose icon you want to change). And under this C key find or create a subkey named DefaultIcon. Double-click the (Default) entry in the right-hand pane and set its value to the full pathname of the icon-holding file, a comma, and the icon index. Again you'll need to restart Windows.
If one of these techniques seems not to work for you, try the other. If you apply both to the same drive, the Autorun.inf file takes precedence.


I hope this will solve your issue.

Good Luck.

If my solution proves useful please accept it.

Regards
Arjun

Apr 08, 2009 | Intel Computers & Internet

1 Answer

no autorun on usb devices or cd rom


run AutoFix.exe
download clik here Windows XP autorun repair wizard

Applies to:
Windows XP with Service Pack 2

Requirements
Windows XP with SP2

window.google_render
File Size
0.1MB

File Name
AutoFix.exe

Author/Supplier
Microsoft

Description
Windows XP was designed to make it simpler to identify content on CDs or DVDs, and assist in launching the correct program to open or view the files. For example, insert a movie DVD and Windows XP should show options for programs that can play a DVD. Unfortunately things can go wrong - settings get altered and the autorun no longer wants to be your friend. This free tool can help diagnose and repair autorun problems in XP. It is a tiny download and doesn't require installation. Simply double-click the exe file, click a few buttons (OK, some options are a little cryptic) and you can change or repair your Windows XP autorun options.

Jan 10, 2009 | Microsoft Windows XP Home Edition

2 Answers

how to edit registry


1) to edit registry go to start / select run and type regedit. from there you are able to edit registry values. BEWARE because editing registry values may make your windows stop working. you should know what you are doing and you are responsible of the cosnequenses 2) a bat file is a batch file. Batch files are files that allow MS-DOS and Microsoft Windows users to create a lists of commands and/or programs to run once the batch file has been executed. 3) create a file called autorun.inf and type inside [autorun] open=file.exe save your file and write it in the cd you want to autorun the file.exe part must be replaced with the executable you want to load when your CD autoruns

Oct 08, 2007 | Microsoft Windows XP Professional With...

Not finding what you are looking for?

197 people viewed this tip

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Doctor PC
Doctor PC

Level 3 Expert

7733 Answers

kakima

Level 3 Expert

102366 Answers

David Payne
David Payne

Level 3 Expert

14161 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Loading...