Results 1 to 2 of 2
Thread: How can i get current directory?
- 05-25-2007, 07:04 PM #1
Member
- Join Date
- May 2007
- Posts
- 2
- Rep Power
- 0
How can i get current directory?
I was wondering if there was a way to get the directory the java application is running from?
- 05-26-2007, 01:21 PM #2levent Guest
You can use this:
or this:Java Code:String currentDir = new File(".").getAbsolutePath();
Java Code:System.getProperty("user.dir")
Similar Threads
-
Static function to get current working directory
By Java Tip in forum Java TipReplies: 1Last Post: 06-23-2008, 02:13 AM -
How to get Current Directory through File
By Java Tip in forum java.ioReplies: 0Last Post: 04-05-2008, 10:14 AM -
Current month
By Java Tip in forum Java TipReplies: 0Last Post: 01-07-2008, 08:40 AM -
Getting current user’s name
By Java Tip in forum Java TipReplies: 0Last Post: 12-07-2007, 12:04 PM -
How to get the current working directory in EJB?
By sathish_2111 in forum Enterprise JavaBeans (EJB)Replies: 1Last Post: 07-19-2007, 04:24 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks