DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
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

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links