wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Java API locating directoires Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Java API locating directoires" Watch "Java API locating directoires" New topic

Java API locating directoires

deepa anandan

Joined: Jun 06, 2006
Posts: 24

Can you please specify is there an API in java that finds out the name and number of drives present in the system.

Since I need to identify a directory XYZ in my local machine.

Kind regards,
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41634
Check out the java.io.File.listRoots method.

Ping & DNS - my free Android networking tools app
It is sorta covered in the JavaRanch Style Guide.
subject: Java API locating directoires