Re: Java API for disks in a machine

Dilum Ranatunga <[email protected]>
Newsgroups gmane.comp.windows.devel.java.advanced
Message-ID <[email protected]>
Do you mean stuff like "A:", "B:" etc, or the actual physical harddisks?

For the logical drives, try  java.io.File.listRoots()
(see http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html#listRoots() )



On 8/15/07, Avinash Lakshman <[email protected]> wrote:
> Hi All
>
> I know there is exposed API for identifying the number of network interfaces
> in a machine. Is there API available for identifying the number of disks
> available in a machine ?
>
> Thanks
> A
>
> _________________________________________________________________
> A new home for Mom, no cleanup required. All starts here.
> http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us
>
> ===================================
> This list is hosted by DevelopMentor(r)  http://www.develop.com
>
> View archives and manage your subscription(s) at http://discuss.develop.com
>

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.