Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding CD-Drives thriugh Java

Status
Not open for further replies.

oops4me

Programmer
Jul 7, 2003
50
IN
Hello There

Can anybody help me how to find logical drives or CD-drives that a computer has in a combo box.

remember only CD-Rom drives only to show and not other Drives.

please help me on this.
 
dia:
java.io.File.listRoots()

javadocs: List the available filesystem roots.
This will list harddrive-partitions, network-filesystem, and usb-drives... on win-systems.

On linux it will only list the root '/'.

oops:
Perhaps you should involve the user in this process - that's the reason, what users are made for :)

seeking a job as java-programmer in Berlin:
 
It will show each and every root, i want to detect only CD-Rom or R/w drives that a computer has.

Actually i am building a application where the program finds for the cdrom / (r/w) drives that a client computer has.

so could you suggest me an option to search for only logical cdrom drives.

Thanks for the reply
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top