Thursday, June 14, 2001 09:36 AM
You cannot detect CD drive in 100% java.
System properties have nothing to do with that. System properties are simply
name value pairs and by default do not contain any info about CD drives etc.
You may be able to put that info into the System properties using the following syntax -
java -DCDDRIVES=D:,E: .....
etc. Assuming you have two CD drives D: and E:. Then inside your Java code do -
String cds = System.getProperty("CDDRIVES");