2013-01-25 Windowsでホームディレクトリ取得 %USERPROFILE%Linuxでいうところの~/とか$HOMEとか。 Windows XPでもVistaでも意図したディレクトリを返してくれる。