detection of cd drive
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Wednesday, June 13, 2001 10:39 PM

Enter your full question here

We are using Windows Nt on a pentium based machine.



please suggest how to detect the CD drive at runtime.



what should be given as argument into System.getProperty(----);

Re: detection of cd drive

Posted By:   Sandip_Chitale  
Posted On:   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");

About | Sitemap | Contact