File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CD Rom auto run

 
joe wolff
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I auto load and run a none EXE file from a cd rom? Thanks for any help.
 
Marilyn de Queiroz
Sheriff
Posts: 9059
12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
joe wolff
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to be able to start a java file and also an html file
 
Mark Herschberg
Sheriff
Posts: 6037
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An age old question.
Create a file called Autorun.
The file should contain text like

[autorun]
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.)

--Mark
 
joe wolff
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark, Thanks a million.
 
Ed012
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
Thanks,

Ed012
 
Michael Matola
whippersnapper
Ranch Hand
Posts: 1797
4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ed012,
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.
[ December 24, 2002: Message edited by: Michael Matola ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic