The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
November 2000

Advertisement

Advertisement

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.

Message:

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.out.println(p.getProperty());

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


Thanx
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 anuj_suri@hotmail.com
> Thanks






Replies:

Sponsored Links



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