Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
GetSpecialFolderPath problem
hi,
i'm gonna get special folder path in winxp and vista.
speical folder path is "application data" directory path.
then the problem is the path is different for each system-winxp, vista.
in detail, winxp has "Application Data" directory and vista has "AppData".
i know const value for getting application data in winxp is CSIDL_LOCAL_APPDATA.
CSIDL_LOCAL_APPDATA (0x001c)
Version 5.0. The file system directory that serves as a data repository for local (nonroaming) applications. A typical path is C:\Documents and Settings\username\Local Settings\Application Data. - MSDN.
but i dont know value for getting it in vista.
can anybody write it or tell me other idea?
regards
You can extract some informations from QSetting object, or you can use LOCALAPPDATA system variable.
hi, T.M.F.
thanks for reply. but i have some problem yet.
my computer doesnt have LOCALAPPDATA system variable and i dont know how to get path by using QSetting.
i dont find LOCALAPPDATA const value in MSDN.
can you tell me about it in detail?