• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 312
  • Last Modified:

CD Autorun program for PC and MAC

 I need to make a program for the PC
and MAC that will be used as an autorun for a CD.  It has to start and
Open a file using the computers default program for the file type.  Example:  A text document would open up notepad on a PC, or a html document will open up the default browser on a PC or MAC.  I am fairly new to JAVA, but thought it was probably the best solution for both platforms.  I only have MS J++ 1.1, what java compiler should I use and any help on the programming would be appreciated.

Thanks,
0
chimp
Asked:
chimp
  • 2
1 Solution
 
Jan LouwerensSoftware EngineerCommented:
I don't know about Mac, but for PC, autorun is determined by a file called "autorun.inf", not a executable file. You can specify in the autorun.inf that you want to run a particular executable if you wish. I can't remember off the top of my head the exact syntax of the autorun.inf file, but I do know that it is contained within the MSVC++ documentation
0
 
chimpAuthor Commented:
 Yes, I know about the autorun.inf on PC and I think on the MAC you can do something similar if it has QuickTime installed.  I am hoping for an easy solution to the actual program (exe) to use on both platforms.
0
 
Jan LouwerensSoftware EngineerCommented:
OH! I see... sorry for the misunderstanding...
0
 
smileCommented:
Java will only be the best solution, if you are shure to have a Java runtime environment on any machine, you take the CD to.

The same appears to be true to the Java capabilities of possibly installed browsers.

However, if you really want to go that way, I would prefer the browser's way, because there seems a big propability for today's PCs or MACs to hav a Java capable browser.

So
1. design and implement a Java Applet that does the work.
2. embed that applet into a HTML page
3. tell the autorun configuration to show the HTML created above.
4. given a pc or mac with correct installed java capable browser you'll see the applet running within the HTML page within the browser.

There is a further advantage, you can integrate the stuff from above into your web-presentation without any changes and serve it from the web-Server (for demonstration purposes e.g.).

hope my answer fitsyour needs ...
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now