(imported topic written by MBARTOSH)
I am trying to determine whether or not a particular file is in the Java cache because I am trying to determine which users have the cache and which don’t.
I am using the following code, but I am getting inconsistent results.
if (((name of it as lowercase = “Win2000” as lowercase) OR (name of it as lowercase = “winxp” as lowercase)) of operating system) then exists file ((expand environment string of substring before “%00” of (value “ProfileImagePath” of key (“HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList” & component string of sid of user of current user) of native registry as string)) & “\Application Data\Sun\Java\Deployment\cache\6.0\1\5e4d23c1-3af67d8f-8.3.e.d-.idx”) else if ((name of it as lowercase = “win7” as lowercase) of operating system) then exists file ((expand environment string of substring before “%00” of (value “ProfileImagePath” of key (“HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList” & component string of sid of user of current user) of native registry as string)) & “\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\1\5e4d23c1-3af67d8f-8.3.e.d-.idx”) else “invalid OS”