File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes General Computing and the fly likes CD Rom auto run Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "CD Rom auto run" Watch "CD Rom auto run" New topic

CD Rom auto run

joe wolff

Joined: Dec 16, 2001
Posts: 6
How can I auto load and run a none EXE file from a cd rom? Thanks for any help.
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9059
Is this a CD-ROM containing an IDE? Are you trying to run a Java program from a CD? Can you please clarify your question.

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
joe wolff

Joined: Dec 16, 2001
Posts: 6
I would like to be able to start a java file and also an html file
Mark Herschberg

Joined: Dec 04, 2000
Posts: 6037
An age old question.
Create a file called Autorun.
The file should contain text like

OPEN=browserstart.exe start.html

The above will run the program browserstart.exe with input start.html. We use it to put up a starting HTML page when the CD is inserted. (It doesn't always work. This is acually trickier to do than you'd think, if you want to handle multiple OS and program support.)

joe wolff

Joined: Dec 16, 2001
Posts: 6
Mark, Thanks a million.

Joined: Dec 23, 2002
Posts: 2
Where does one go to solve the "trickier" problems of initiating AUTO RUN from a CD-ROM?
I would like to create presentations in HTML and burn them on CD-ROMs, but I have not been able to find a robust solution for enabling the completed CD-ROM to auto load for my clients, e.g., the index page.
I'm a graphics designer, not a programmer, so I'm interested in finding a solution that I can use confidently.
Overall, your solution, "OPEN=browserstart.exe start.html", seem straight forward, but your subsequent advice (caution) seems daunting. Isn't there a way to anticipate the various systems requirements needed and then supplying multiple lines of code for covering the various option requirements?

Michael Matola
Ranch Hand

Joined: Mar 25, 2001
Posts: 1793
Welcome to JavaRanch. Please adjust your displayed name to meet the JavaRanch Naming Policy. You can do so here.
Even though you dug this thread out of the IDEs forum, I'm going to close it here and move it to General Computing.
Happy posting.
I agree. Here's the link:
subject: CD Rom auto run
It's not a secret anymore!