This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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