473,856 Members | 1,779 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 6135
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
2708
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
16843
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
1516
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
2352
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
1845
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
29219
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
3854
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
4768
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
1907
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
9754
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10692
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10769
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10375
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7084
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
5754
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4567
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
4168
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3194
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.