The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
November 2000



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


Answer of your que..

Posted by ruchi and hema on November 04, 2000 at 6:50 AM

hi anuj...
there is one method of a System class from which
u can get the System properties.

Properties p = System.getProperties();

System.getProperties() will return Properties Object
then getProperty () method of Properties class
will return String.

ruchi and hema

> hi,

> How can I get the system properties of a computer. Please can anybody help in getting the following

> 1)Get the list of drives on a computer
> 2)Get the following list of information for a specific drive
> -Name/Label/Description
> -File system (NTFS, FAT, etc.)
> -Free space
> 3)Name of the computer program is running on

> Please email this to
> Thanks


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us