hardisk problem


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: hardisk problem

  1. #1
    Join Date
    Jan 2003
    Posts
    4

    Question hardisk problem

    I'm trying to write a little program where i have a listbox and a tree. Now that aint really the problem, but i want to be able to select a harddisk form my listbox and then make the tree of the disk.
    But the problem is that i don't know how i can get my harddisks in that listbox

    Can anyone help me?


    Tia
    Narf

  2. #2
    Join Date
    Nov 2002
    Posts
    138
    what do you mean by i don't know how i can get the harddisks....?

    in the File class, there is a method which returns an array of all the drives in your computer. it's listRoots(). check on the File class documentation to be sure i gave you the right method name. this should solve your problem, but then another problem arises - JAVA DOESN'T KNOW HOW TO IDENTIFY DRIVE TYPES. i started a thread about this on how to identify drive types ( thread in this forum is - drive types )....

  3. #3
    Join Date
    Jan 2003
    Posts
    4
    thanx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center