File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Java API locating directoires" Watch "Java API locating directoires" New topic
Author

Java API locating directoires

deepa anandan
Greenhorn

Joined: Jun 06, 2006
Posts: 24
Hi,

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,
Deepa
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42918
    
  68
Check out the java.io.File.listRoots method.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java API locating directoires