Hi
I want to get the current working path. I used method
"System.getProperty("user.dir").", but it showed only part of full
path.
How can I find full path?
bablospresente@yahoo.com - 19 Nov 2006 09:41 GMT
> Hi
> I want to get the current working path. I used method
> "System.getProperty("user.dir").", but it showed only part of full
> path.
> How can I find full path?
it works fine on my wndows
ie. a.java
public class a{
public static String path(){
String p=System.getproperty("user.dir");
}
//call in main
println(pathdir());
}
outpur : C:\Documents and Settings\username\desktop
Lars Borup Jensen - 20 Nov 2006 17:45 GMT
> Hi
> I want to get the current working path. I used method
> "System.getProperty("user.dir").", but it showed only part of full
> path.
> How can I find full path?
Or you may want to use a File such as:
new File(System.getProperty("user.dir")).getAbsolutePath()
Regards / Lars Borup Jensen
http://www.it-arbejde.dk