PC Review


Reply
Thread Tools Rate Thread

Delete file in Temporary Internet Files

 
 
=?Utf-8?B?TWljaGFlbA==?=
Guest
Posts: n/a
 
      28th Jul 2005
I try to delete all files from my Temporary Internet Files with:

foreach (string s in System.IO.Directory.GetFiles(@"C:\Documents and
Settings\Administrator\Local Settings\Temporary Internet Files"))
{
System.IO.File.Delete(s);
}

However, I found that I can only get 1 file - C:\Documents and
Settings\Administrator\Local Settings\Temporary Internet Files\desktop.ini
returned.

I use dotnetframework 1.0 on windows 2000.

I tried to do the same thing on winxp with dotnetframework 1.1, and it works
fine.

Why is that?

Thanks.
 
Reply With Quote
 
 
 
 
Morten Wennevik
Guest
Posts: n/a
 
      28th Jul 2005
Hi Michael,

I can't at the top of my head remember if there is a difference in storing temporary internet files between W2K and XP but in XP the files you are trying to delete are located in subdirectories of that directory, typically the Content.IE5 directory and subdirectories of that directory.
--
Happy coding!
Morten Wennevik [C# MVP]
 
Reply With Quote
 
=?Utf-8?B?TWljaGFlbA==?=
Guest
Posts: n/a
 
      29th Jul 2005
The location of "Temporary Internet Files" is the same for both XP and 2000.
And what I am trying to do is just to delete files inside folder "Temporary
Internet Files" of current user.

Thanks for your advice.

"Morten Wennevik" wrote:

> Hi Michael,
>
> I can't at the top of my head remember if there is a difference in storing temporary internet files between W2K and XP but in XP the files you are trying to delete are located in subdirectories of that directory, typically the Content.IE5 directory and subdirectories of that directory.
> --
> Happy coding!
> Morten Wennevik [C# MVP]
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IWebBrowser2 ActiveX , Does not releases temporary internet files when Closed, despite delete Temporary option of Browser (Internet Explorer)is Selected. =?Utf-8?B?VlpVbWFy?= Microsoft VC .NET 0 21st Feb 2004 07:31 AM
virusscan cannot delete file in Temporary Internet Files Tim Windows XP Internet Explorer 1 21st Dec 2003 07:37 PM
Cannot delete file in Temporary Internet Files Caroline Microsoft Windows 2000 Security 2 24th Nov 2003 11:14 AM
Internet Explorer 6 removes my plugins when I delete internet temporary files Todd E. Windows XP Internet Explorer 2 10th Nov 2003 10:30 PM
Can't delete file in Temporary Internet Files folder John S. Ford Windows XP Internet Explorer 1 7th Jul 2003 01:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:33 PM.