Re: Java API for disks in a machine
Christopher Deckers <[email protected]>
| Newsgroups | gmane.comp.windows.devel.java.advanced |
|---|---|
| Message-ID | <[email protected]> |
If indeed you mean "A:", "B:", etc., then you could also try: Maybe you could try with the javax.swing.filechooser.FileSystemView class: FileSystemView fsv = FileSystemView.getFileSystemView(); File roots[] roots = fsv.getRoots(); // iterate over the roots and call fsv.isDrive(root) This should work but only if the drives are roots... -Christopher On 8/16/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