File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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

How to find out path of a folder

Abhra Chandra

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("")

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

SCJP 1.4,
I agree. Here's the link:
subject: How to find out path of a folder
Similar Threads
how to search file by name?
ImageIcon not showing Ubuntu
Help I can't figure out how to install java jdk 7
A trouble of System class path
how to add to a application path??