Tuesday, March 1, 2011

How to get the current directory path

If you want to get the path to the folder where the application is running use following code.
String currentdir = System.getProperty("user.dir");

No comments:

Post a Comment