Printable View
With this code you can print the users home directory to the console: Code Java: String home = System.getProperty("user.home"); System.out.println(home); Example output: Quote: C:\Documents and Settings\Frank.mydomain
String home = System.getProperty("user.home"); System.out.println(home);