in reply to windows app-data path

Win32 has a GetFolderPath() function that appears to wrap SHGetSpecialFolderPath(). Call it with one of the CSIDL_xxx constants and you get the folder name.

Each and every new Windows version has a new API to get the "special" folders' paths, and the old APIs are implemented as wappers for the new APIs. Follow the links to find the details. The current name for the real function seems to be SHGetKnownFolderPath, and it requires a KNOWNFOLDERID. You could use Win32::API to call that function if you detect that your program runs on a modern Windows version.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Replies are listed 'Best First'.
Re^2: windows app-data path
by momo33 (Beadle) on Nov 20, 2011 at 09:31 UTC
    Thank you for all the answers! Some look very promising and together they will provide the solution.