Sunday, July 20th 2008, 2:34am UTC+1

You are not logged in.

  • Login
  • Register

1

Sunday, May 11th 2008, 3:32pm

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
  • Go to the top of the page

2

Sunday, May 11th 2008, 4:52pm

You can extract some informations from QSetting object, or you can use LOCALAPPDATA system variable.
  • Go to the top of the page

3

Monday, May 12th 2008, 7:39am

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?
  • Go to the top of the page

Rate this thread