File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes How to find out path of a folder 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 » Beginning Java
Bookmark "How to find out path of a folder" Watch "How to find out path of a folder" New topic
Author

How to find out path of a folder

Abhra Chandra
Greenhorn

Joined: Sep 08, 2004
Posts: 5
Hi All,
How can I find out the path of a folder such as TEMP folder of windows using System.getProperty() method?
Please help.
Ben Wood
Ranch Hand

Joined: Aug 14, 2001
Posts: 342
I believe you can use System.getProperty("java.io.tmpdir")


and user home with System.getProperty("user.home")
[ December 08, 2004: Message edited by: Ben Wood ]

SCJP 1.4, www.gsi3d.org.uk
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to find out path of a folder