Archive: Delete a file from the cache


Delete a file from the cache
  Hi all.
I need to delete a file from the cache (i.e. from C:\Documents and Settings\<User Name>\Local Settings\Temporary Internet Files\).
The problem is the files are saved to \Content.IE5\<********> (i.e. there's random letters and numbers), and I can't brute force all the folders.
For example, If I open C:\Documents and Settings\NeverGone\Local Settings\Temporary Internet Files\ in Windows Explorer, there's a one list of all downloaded files. Maybe this list can be accessed?
So, how the file can be deleted from the IE cache?
Thanks in advance.


you probably have to call FindFirstUrlCacheEntry and friends with the system plugin


Anyone ever figure out how to use the FindFirstUrlCacheEntry function?

Using win32 API functions is such a pain when you don't program in C and only have a vague grasp of NSIS's system plug-in.

I feel like I'm just stabbing blind at it.


    System::Alloc 1
Pop $0

System::Call `*(&i2 1)i .r1`

System::Call `Wininet:FindFirstUrlCacheEntry(i 0,i $0,i $1)i .r2 ?e`
DetailPrint $$2=$2
Pop $3
DetailPrint LastError=$3

System::Call `*$1(&i2 .r3)`

DetailPrint $$3=$3
>