Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto running CD's

Status
Not open for further replies.

aph

Technical User
Jul 8, 2000
134
GB
Hi all,
I wish to put some demo movies on a CD which are built in to HTML page but I want the CD to auto run once someone has placed it into there computer and go to the first html page (with the movies on).
I know Director can do this but is there a free download or a site where I can get a program to produce an auto running CD without having Director?

andy
 
All you need to do is create an autorun.inf and a small batch file, example below:

autorun.inf content is:

[autorun]
open=runme.bat

runme.bat content is:

@echo off
cls
echo ------------------------------------------------------- 01.30.01
echo Your company nameInc.
echo ----------------------------------------------------------------
echo.
echo This CDROM was created by Your company here, Inc.
echo Marketing and Business Development Group and is protected
echo under copyright laws.
echo.
echo Copyright (c)2001 Your company name
echo All Rights Reserved.
echo.
echo This CD is designed for use with MicroSoft Internet Explorer 5.0 and
echo above... It is best viewed at a screen resolution of 800x600 or higher,
echo with 8 bit colors or more.
echo.
echo
echo
echo
echo
echo.
echo
echo.
echo.
pause

cls
echo.
echo.

start index.html

These are two separate files which would be included in the CDROM. When placed in the CD player it will run automatically. Make sure that all the echo's are on the left margin in the batch file. Unfortunately it wraps here but they should all be left margin. The file at the bottom that the start command refers to is your html file that will open in the browser.

Hope this helped.
 
there is a microsoft file called shellexec.exe that you can use to launch a webpage.

it only requires one line of code in the autorun.inf file that you need to write.

You can find it on any service pack CD from them.

Just read the autorun.inf file in the root to find out how to call it.

As far as i am aware, this file is not protected, and is free to be used on all cds. (if anyone knows otherwise, please tell me!:-I)

if you can't find it, i would be happy to email you more details.

Andy,
awms@awmsnet.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top