1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Vista and the Temp folder

Discussion in 'Win32' started by JerryWest, Oct 1, 2006.

  1. JerryWest

    JerryWest New Member

    Joined:
    Oct 1, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    When I call the API GetTempPath under Windows Vista I am returned a folder that doesn't actually exist. I realize this is a by product of Virtualization in Vista. This seems to imply that a temp folder is no longer used by the system? Is there a different API to use to get the proper temp folder in Vista? Or, perhaps, is the developer supposed to implement a temp folder themselves and then clean it up after the program runs?

    Thanks for any advice,

    JW
     
  2. NewsBot

    NewsBot New Member

    Joined:
    Dec 2, 2008
    Messages:
    1,267
    Likes Received:
    1
    Trophy Points:
    0
    You should be using the ProgramData folder instead and which can be retrieved by using the ExpandEnvironmentVariable with %ALLUSERPROFILE% will give access to the user data folder where you can always keep your application data which you were keeping in the temp folder.

    I havent tested with GetTempPath in Vista as of now but will soon be doing on this and update it here.
     

Share This Page