The ~ gets expanded to CSIDL_LOCAL_APPDATA, $HOME, $USERPROFILE or just ".", whichever succeeds first. The usual location will be: "C:\windows\profiles\<user>\Local Settings\Application Data". "." is now the fallback for *nix systems too.