The files you see when you do 'View Files' (IE options > General Tab > Settings > Temporary internet Files) are not actually files that are located on disc directly in the Temporary Internet Files
folder.
There's a hidden folder inside that location called Content.IE5
, and that will contain several randomly named folders with the actual temporary internet files inside them.
To get a list of them you can do this:
var path = Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.InternetCache),
"Content.IE5");
string[] files = Directory.GetFiles(path, "*", SearchOption.AllDirectories);
For more information check out A Primer on Temporary Internet Files by Eric Law.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…