473,396 Members | 1,775 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Cannot Enumerate IE Temporary Files Folder

VS 2003, XP SP2

------------------------------------------------------------
DirectoryInfo temporary = new
DirectoryInfo( Environment.GetFolderPath(Environment.SpecialFolde r.InternetCache));
FileInfo [] files = temporary.GetFiles();
foreach(FileInfo fi in files)
{
Console.WriteLine(fi.FullName);
}

-------------------------------------------------------

This is the only output.

C:\Documents and Settings\test\Local Settings\Temporary Internet
Files\Temporary Internet Files\desktop.ini

--------------------------------------------------------

Why aren't the other files shown?

---------------------
Thanks
Rajiv Das
Nov 17 '05 #1
3 3886
On Tue, 8 Nov 2005 03:19:03 -0800, Rajiv Das wrote:
VS 2003, XP SP2

------------------------------------------------------------
DirectoryInfo temporary = new
DirectoryInfo( Environment.GetFolderPath(Environment.SpecialFolde r.InternetCache));
FileInfo [] files = temporary.GetFiles();
foreach(FileInfo fi in files)
{
Console.WriteLine(fi.FullName);
}

-------------------------------------------------------

This is the only output.

C:\Documents and Settings\test\Local Settings\Temporary Internet
Files\Temporary Internet Files\desktop.ini

--------------------------------------------------------

Why aren't the other files shown?


What other files? Desktop.ini is the only file in the Temporary Internet
Files folder. Everything else in there is a sub-folder. If you want to
see everything you'll need to get the folders and then traverse into each
one of them getting the files. Most of the Internet Explorer cache is in
sub-folders under the Content.IE5 (if using IE5 or IE6) folder under
Temporary Internet Files.
--
Tom Porterfield
Nov 17 '05 #2
see the snapshot here at ImageShack:

http://img495.imageshack.us/img495/7581/untitled5mo.jpg

Just to add, I am using IE7 beta 1.

Moreover, I don't see any ContentIE folders etc.
--
---------------------
Thanks
Rajiv Das
"Tom Porterfield" wrote:
On Tue, 8 Nov 2005 03:19:03 -0800, Rajiv Das wrote:
VS 2003, XP SP2

------------------------------------------------------------
DirectoryInfo temporary = new
DirectoryInfo( Environment.GetFolderPath(Environment.SpecialFolde r.InternetCache));
FileInfo [] files = temporary.GetFiles();
foreach(FileInfo fi in files)
{
Console.WriteLine(fi.FullName);
}

-------------------------------------------------------

This is the only output.

C:\Documents and Settings\test\Local Settings\Temporary Internet
Files\Temporary Internet Files\desktop.ini

--------------------------------------------------------

Why aren't the other files shown?


What other files? Desktop.ini is the only file in the Temporary Internet
Files folder. Everything else in there is a sub-folder. If you want to
see everything you'll need to get the folders and then traverse into each
one of them getting the files. Most of the Internet Explorer cache is in
sub-folders under the Content.IE5 (if using IE5 or IE6) folder under
Temporary Internet Files.
--
Tom Porterfield

Nov 17 '05 #3
On Tue, 8 Nov 2005 04:15:03 -0800, Rajiv Das wrote:
see the snapshot here at ImageShack:

http://img495.imageshack.us/img495/7581/untitled5mo.jpg

Just to add, I am using IE7 beta 1.

Moreover, I don't see any ContentIE folders etc.


Calling GetFiles isn't going to get you folders. You'll need to call
GetDirectories to get that folder. What you see when browsing the
Temporary Internet Files folder through Windows Explorer is not the actual
contents as they are written to the file system. Delete the desktop.ini
file from Temporary Internet Files (either at the command prompt or in your
C# program) and then open the folder in Explorer to see what I mean. Make
sure you don't run Internet Explorer before browsing the folder in Windows
Explorer as IE will put the desktop.ini file (which tells Windows Explorer
to view the folder using a special filter rather than simply showing the
contents as they are stored in the file system) back.
--
Tom Porterfield
Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: dave | last post by:
Frequently getting the compile error: "The process cannot access the file because it is being used by another process." The files that .NET is trying to reference are the PDB and DLL that I...
3
by: Jim | last post by:
Is it possible to read the Temporary Internet Files folder using C#? I'm messing with FileIO (newbie here) and everything seems to work fine until I try to read the list of files in this Temporary...
2
by: Rick Strahl [MVP] | last post by:
I'm having problems with installation of a Web app on my Win 2003 server. I copy up the app configure the virtual. But when I access any ASPX pages I now get: CS0016: Could not write to output...
2
by: Kiko + | last post by:
Hi, I've been getting this error: Server Error in '/applicationname' Application. ---------------------------------------------------------------------------- ---- Failed to create...
12
by: Chad Crowder | last post by:
Hi all, I hope someone can give me a hand, because I'm out of ideas. I keep getting this message: Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET...
2
by: Juleke | last post by:
Hello, For some test, I have setup one computer with Win 2003 Standard + IIS + Active Directory My problem is Access to the path "c:\windows\microsoft.NET\framework\v1.1.4322\temporary ASP.NET...
5
by: Rob | last post by:
I installed VS.net 2003... I can see the help topics, but when I click them, the content page says that it cannot connect to the server. I want the help to be retrieved from the local machine. ...
4
by: clintonG | last post by:
I started an application using Beta2 and now I've been having a variety of problems continuing to develop the application in 2.0 that I suspect may be related to left-over icky stuff. What can I...
5
by: rogersw8n | last post by:
Some how, some way the account that creates folders under Temporary Internet files has been changed to a domain account for VS 2003 and VS 2005. I recently installed VS 2005. All seemed to be ok...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.