473,721 Members | 2,252 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reading the "Temporary Internet Files" folder using C#?

Jim
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 Internet Files folder. I'm
only received 1 file when I know there is more.

Any suggestions are very appreciated.

Thanks
Nov 17 '05 #1
3 6128
Jim
I'm sorry I should have stated this earlier. This is written as a windows
based C# application. Not web based.

"Jim" wrote:
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 Internet Files folder. I'm
only received 1 file when I know there is more.

Any suggestions are very appreciated.

Thanks

Nov 17 '05 #2

"Jim" <Ji*@discussion s.microsoft.com > wrote in message
news:D7******** *************** ***********@mic rosoft.com...
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 Internet Files folder. I'm
only received 1 file when I know there is more.

Any suggestions are very appreciated.


The Temporary Internet Files folder, on my machine, has only one file and
several underlying directories. Try enumerating the directories and all the
files in them.

There appears to be alot of files in the folder in explorer because of a
shell extension which shows a cleaner view of the cached files than the raw
directory view will.
Nov 17 '05 #3
Jim
Daniel,

Thank you for explanation. Everything is working great now.

Jim

"Daniel O'Connell [C# MVP]" wrote:

"Jim" <Ji*@discussion s.microsoft.com > wrote in message
news:D7******** *************** ***********@mic rosoft.com...
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 Internet Files folder. I'm
only received 1 file when I know there is more.

Any suggestions are very appreciated.


The Temporary Internet Files folder, on my machine, has only one file and
several underlying directories. Try enumerating the directories and all the
files in them.

There appears to be alot of files in the folder in explorer because of a
shell extension which shows a cleaner view of the cached files than the raw
directory view will.

Nov 17 '05 #4

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

Similar topics

2
2695
by: WahJava | last post by:
Hi developers, I'm running GCC (GNU C/C++ Compiler shipped with Fedora Core 2). I've written a program using IOStream classes, in which I'm reading files in ios::binary mode. I'm using read() method (exact signature not remembered) of the std::istream class ? When I'm reading the value in objects attribute (member variable), the read fails, but when I'm reading in a local variable value is successfully read as shown below: ..... any...
5
16784
by: Rosa | last post by:
Hi, I'm trying to clear the TIF on Windows XP programmatically with the below code. This code works fine on any folder but the TIF. For some reason the atEnd() statements always defaults to true and no files are deleted in the folder. The peculiarity of this issue is that the files/subfolders cannot be seen through the windows explorer either. I can only access/delete them through a command shell. Any ideas?
1
1513
by: Sam Martin | last post by:
Hi all, Got a problem regarding auto-updating an application. We've got an app which implements the MS AppUpdater application block, however although this all works fine when logged in as an administrator - when running the app and trying to update with a latter version from a web server (note: the app is installed under the "Program Files" folder) - an exception is thrown as the normal user doesn't have permission to modify / create...
4
2344
by: Nicolás Castagnet | last post by:
Hi, I write this post because I notice a strange behavior related with "Temporary Internet Files" and maybe some of you can help me to understand it. I am working in a web application with ASP.NET. Recently, I group of user have problems with it because the values of the sessions were not stored correctly (the application save the username in a login page, then other page try to get it and the result was always ""). We restart the web...
1
1836
by: SalamElias | last post by:
I have a VS 2003 VB web project which works fine, in IE, debug....After several browsing in IE or debugging several ti;mes I start to get the ugly error "Configuration Error ", Access is denied: 'mydll', and the following line in red color in the ouput "Line 200: <add assembly="*" />" Source File: c:\windows\microsoft.net\framework\v1.1.4322\Config\machine.config Line: 200 Assembly Load Trace: The following information can be...
4
29214
by: pedestrian via DotNetMonster.com | last post by:
I'm using VB 2005. How to get the full path for "Program Files" folder in Windows, ie. either it is C:\Program Files or D:\Program Files or etc.? How about the full path of "Windows" folder? (either C:\Windows or C:\WINNT etc.) Thanks for replying... --
2
3848
by: supra91 | last post by:
Hi, I have to read files from the parent directory and delete those files. This parent directory contains logs files. This directory also contains some sub directories and I do not want to delete files from these sub directories. I am using this code opendir(DIR, $lpath); @flist = readdir(DIR); closedir(DIR); when I do this @flist also contains files from sub directories and I do want that. How can I avoid reading files from...
3
4762
by: =?Utf-8?B?S2Fyc3RlbiBMdW5kc2dhYXJk?= | last post by:
Hi, I have made an application in C#, where I use the statement Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) to get the name of the "Program Files" folder. It works fine in "Windows 2000" and "Windows XP", but it fails when I'm using "Windows Vista Ultima" in Danish. It returns "Program Files" instead of "Programmer". "Programmer " is the name of the folder in explore. Hope someone can help me - Thanks
4
1895
by: Miner Jeff | last post by:
Hello, I have a basic question about reading files. I have several data files where the filenames are identical except for a short (3 character) prefix. I inherited this code and the person who developed it was making a duplicate of each file and then deleting the prefix on the copied file so the following statement could read a generic "filename":
0
8851
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9373
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8016
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6676
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5992
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4761
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3201
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2584
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2137
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.