Thread: New Updater
View Single Post
  #46  
Unread 02-21-2014, 01:51 PM
tknarr's Avatar
tknarr tknarr is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Jul 2006
Server: Unrest
Posts: 849
Default

Quote:
Originally Posted by Kaldran View Post
Well it is not Javas fault that CCleaner thinks those files are temporary They are clearly marked as (nonroaming) application data.
The temp folder there should be considered temporary. Nothing a program puts there should get trashed while the program's running, but nothing put there should be assumed to still be there the next time the program runs (if it still is you can take advantage of it, but you shouldn't assume it). If you need permanent storage, you should use the LOCALAPPDATA environment variable or the "Local Settings" (Environment.SpecialFolder.LocalApplicationData in C#/.Net) location. Follow those paths by a program-specific folder name to avoid conflicts with other programs. Drop the "local" to get the generic appdata location (usually in the Roaming profile, it doesn't really matter unless the computer's part of a domain which most home machines aren't).

NB: the Java application cache is stored in the LocalLow profile underneath the Sun\Java folder, not in a temp folder.
__________________
"Hey! I'm not illiterate. I had a book once. ...could've used some ketchup though..."

Last edited by tknarr : 02-21-2014 at 01:55 PM.
Reply With Quote