Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to find the cd drives???  RSS feed

 
Sandy Elizabeth
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there...
Is there any method in java to list only the cd drives connected to the system..
my objective is to populate a combo box with the drive letters of the cd drives,writers etc..
i tried with File.listRoots() which displays all the drives in the system...
thanks in advance..
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
CS, please change your displayed name to conform to our
naming policy. In short, your name must be a first name and last name, separated by a space and not obviously fake.
About your question, no, there is no functionality in the Java API which specifically lists the CDROM drives.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!