Windows does have a home dir, but that's not where you want to place application settings
Application settings should go in a subdir of the directory specified by registry value
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Local Settings
The subdir should be of the form <company name>\<application name>.
Application data should go in a subdir of the directory specified by registry value
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Local AppData
The subdir should be of the form <company name>\<application name>.
Replace %USERPROFILE% with the value of $ENV{USERPROFILE}.
In reply to Re^2: cross-platform way to get home directory
by ikegami
in thread cross-platform way to get home directory
by Errto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |