How can i get the list of volumes(Drives )

I want to get the list of all Volumes(Drives) ,exist in the system Kindly some one help me
[104 byte] By [Dayanand_Mishraa] at [2007-11-27 9:46:12]
# 1
Look at FileSystemView.getRoots().
CeciNEstPasUnProgrammeura at 2007-7-12 23:56:13 > top of Java-index,Java Essentials,Java Programming...
# 2
Or File.listRoots() has been arround rather longer.
malcolmmca at 2007-7-12 23:56:13 > top of Java-index,Java Essentials,Java Programming...
# 3
I tried but It is returning the File[] object and it will contain the Folder path not the list of System drives in Windows Env
Dayanand_Mishraa at 2007-7-12 23:56:13 > top of Java-index,Java Essentials,Java Programming...
# 4
Thanks it is Working
Dayanand_Mishraa at 2007-7-12 23:56:13 > top of Java-index,Java Essentials,Java Programming...