Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / July 2005

Tip: Looking for answers? Try searching our database.

Delete file in Temporary Internet Files

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael - 28 Jul 2005 12:31 GMT
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.
Morten Wennevik - 28 Jul 2005 13:58 GMT
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.
Signature

Happy coding!
Morten Wennevik [C# MVP]

Michael - 29 Jul 2005 02:37 GMT
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.

> 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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.