Working directory
Getting the working directory of a script is simple.
String workingDir = System.getProperty("user.dir");
Getting the working directory of a script is simple.
String workingDir = System.getProperty("user.dir");