Current, the home of current user is:
C:\Documents and Settings\freewind
It contains many other directories, e.g. My Documents, Desktop
Now I want to move the whole directory to another place, for example:
D:\freewind
Then if I want to run this Java code:
System.out.println(System.getProperty("user.home"))
It will print D:\freewind.
Is it possible?
%USERPROFILE%environmental variable. – slhck Sep 6 '11 at 20:36