A step by step tutorial teaching you how to create your own chat client and chat server easily in C#, for local networks or the Internet.
A C# tutorial showing you how to make use of WMI to extract information on disk drives, such as model, capacity, sectors and serial number.
This tutorial will teach you how to calculate the shipping cost based on the weight, height, length and depth of the box, the distance and the UPS service type.
Creating a Rich Text Editor using JavaScript is easier to do than you might think, thanks to the support of modern browsers; this tutorial will walk you through it.
Delete All Temporary Internet Files Of IEDelete all the temporary files from Internet Explorer's cache folder using basic methods available in the System.IO namespace. |
On Friday, October 17th 2008 at 09:31 PM By Andrew Pociu (View Profile) ![]() ![]() ![]() ![]() (Rated 3.4 with 8 votes) |
||
|
|||
Digg It!
Del.icio.us
Reddit
StumbleIt
Newsvine
Furl
BlinkList
|
|||
|
|||
Current CommentsWhy it does not work?
neat
good one
xyx
what about index.dat. it is not deleting...
what about index.dat. it is not deleting...
did not work for me. only returned one file.
ah, the trick is the directories too. when you look at the Temporary Internet Files in windows explorer, it shows everything as if it was all there. its actually scattered through out a number of folder.s
Its unable to delete index.dat...
This is delete only default User not other user account like .
You have login as Administrator a/c on system .But dot not delete.
This is delete only default User not other user account like .
You have login as Administrator a/c on system .But dot not delete.
The above solution will not work in windows 7 because the files are locked and are in what Bill and the gang down at CIA central call 'Special Folders' so you need to kill Explore and IExplorer process and then change the FileInfo attributes to normal on the file and also the folder and then it's still hit and miss if you can delete the files and thats without the backups.
here is the code in C#
int DeletedCount = 0;
int CouldNotDelete = 0;
KillExplorer();
foreach (string DatFile in DatFiles)
{//Do not put break point or step into the code else explorer will start and the file will become locked again
DirectoryInfo DInfo=new DirectoryInfo(DatFile.Replace("index.dat",""));
FileAttributes OldDirAttrib = DInfo.Attributes;
DInfo.Attributes = FileAttributes.Normal;//Set to normal else can not delete
FileInfo FInfo = new FileInfo(DatFile);
FileAttributes OldFileAttrib = FInfo.Attributes;
SetAttr(FInfo, FileAttributes.Normal);
TryDelete(FInfo);
SetAttr(FInfo, OldFileAttrib);//Sets back to Hidden,system,directory,notcontentindexed
if (File.Exists(DatFile))
CouldNotDelete ;
else
DeletedCount ;
}
if (DatFiles.Count>0)//Lets get explorer running again
System.Diagnostics.Process.Start(DatFiles[DatFiles.Count - 1].Replace("index.dat", ""));
else
System.Diagnostics.Process.Start("explorer");
System.Windows.Forms.MessageBox.Show("Deleted " DeletedCount " Index.dat files with " CouldNotDelete " Errors");
return "Deleted " DeleteFileCount " Files ";
}
private void KillExplorer()
{
foreach (Process P in Process.GetProcesses())
{//Kill both these process because these are the ones locking the files
if (P.ProcessName.ToLower() == "explorer")
P.Kill();
if (P.ProcessName.ToLower() == "iexplore")
P.Kill();
}
}
private bool TryDelete(FileInfo Info)
{
try
{
Info.Delete();
return true;
}
catch
{return false;}
}
private void SetAttr(FileInfo Info,FileAttributes Attr)
{
try
{
Info.Attributes = Attr;
}
catch { }
}
this is the good article.
please check this useful link related to this article
http://www.mindstick.com/Articles/0bc3d03e-ec1c-489e-916e-4ba26990a2ad/
[url=http://www.uggnetstore.com ]Australia Sheepskin Ugg Boots on sale,you can buy cheap ugg boots,ugg boots 5815,discount ugg boots 5825,ugg boots 5823,ugg boots for womens,Australia Sheepskin Ugg Boots,ugg winter boots,UGG Bailey Button,UGG Classic Short,UGG Classic Tall,Ugg Classic Cardy.[/url]
[url=http://www.uggnetstore.com/ ]ugg boots[/url]
[url=http://www.uggnetstore.com/ ]cheap uggs[/url]
[url=http://www.uggnetstore.com/ ]UGG Bailey Button[/url]
[url=http://www.uggnetstore.com/ ]UGG Classic Short[/url]
[url=http://www.uggnetstore.com/ ]UGG Classic Short[/url]
[url=http://www.uggnetstore.com/ ]Ugg Classic Cardy[/url]
[url=http://www.uggnetstore.com/ ]ugg winter boots[/url]
[url=http://www.uggnetstore.com/ ]Australia Sheepskin Ugg Boots on sale[/url]
[url=http://www.uggentityshop.com ]Australia Sheepskin Ugg Boots on sale,you can buy cheap ugg boots,ugg boots 5815,discount ugg boots 5825,ugg boots 5823,ugg boots for womens,Australia Sheepskin Ugg Boots,ugg winter boots,UGG Bailey Button,UGG Classic Short,UGG Classic Tall,Ugg Classic Cardy.[/url]
[url=http://www.uggentityshop.com/ ]UGG Bailey Button[/url]
[url=http://www.uggentityshop.com/ ]UGG Classic Short[/url]
[url=http://www.uggentityshop.com/ ]ugg boots[/url]
[url=http://www.uggentityshop.com/ ]cheap uggs[/url]
[url=http://www.uggentityshop.com/ ]Ugg Classic Cardy[/url]
[url=http://www.uggentityshop.com/ ]ugg winter boots[/url]
[url=http://www.uggentityshop.com/ ]Australia Sheepskin Ugg Boots on sale[/url]
[url=http://www.netbuyugg.com ]Australia Sheepskin Ugg Boots on sale,you can buy cheap ugg boots,ugg boots 5815,discount ugg boots 5825,ugg boots 5823,ugg boots for womens,Australia Sheepskin Ugg Boots,ugg winter boots,UGG Bailey Button,UGG Classic Short,UGG Classic Tall,Ugg Classic Cardy.[/url]
[url=http://www.netbuyugg.com/ ]ugg winter boots[/url]
[url=http://www.netbuyugg.com/ ]Australia Sheepskin Ugg Boots on sale[/url]
[url=http://www.netbuyugg.com/ ]ugg boots[/url]
[url=http://www.netbuyugg.com/ ]cheap uggs[/url]
[url=http://www.netbuyugg.com/ ]UGG Bailey Button[/url]
[url=http://www.netbuyugg.com/ ]UGG Classic Short[/url]
[url=http://www.netbuyugg.com/ ]UGG Classic Short[/url]
[url=http://www.netbuyugg.com/ ]Ugg Classic Cardy[/url]
[url=http://www.ibuyugg.com ]Welcome to the cheap uggs|a nature shop website offering a comprehensive range of sheepskin cheap uggs and ugg boots. Aside from our highly competitive pricing,we offer free fast shipping world wide included in all of our prices and a 100% products original package of ugg boots.[/url]
[url=http://www.ibuyugg.com/ugg-classic-short-boots.html ]ugg classic short[/url]
[url=http://www.ibuyugg.com/ ]wholesale ugg boots[/url]
[url=http://www.ibuyugg.com/ ]ugg boots[/url]
[url=http://www.ibuyugg.com/ ]cheap uggs[/url]
[url=http://www.ibuyugg.com/ ]ugg boots sale[/url]
[url=http://www.uggbootsgood.com ]Authentic cheap UGGs store,buy latest styles and cheap UGG Boots.welcome to our professional UGGs for cheap store|offering UGG Boots sale and UGGs outlet on all styles|save up to 70%|free shipping and fast delivery.[/url]
[url=http://www.uggbootsgood.com/ ]ugg boots online[/url]
[url=http://www.uggbootsgood.com/ ]ugg boots sale[/url]
[url=http://www.uggbootsgood.com/ ]ugg boots outlet[/url]
[url=http://www.uggbootsgood.com/ ]uggs for cheap[/url]
[url=http://www.uggbootsgood.com/ ]uggs on sale[/url]
[url=http://www.uggbootsgood.com/ ]ugg australia[/url]
[url=http://www.uggbootsgood.com/ ]ugg boots[/url]
[url=http://www.esaleugg.com ]Welcome to the cheap uggs,a nature shop website offering a comprehensive range of sheepskin cheap uggs and ugg boots. Aside from our highly competitive pricing|we offer free fast shipping world wide included in all of our prices and a 100% products original package of ugg boots.[/url]
[url=http://www.esaleugg.com/ ]uggs outlet[/url]
[url=http://www.esaleugg.com/ ]wholesale ugg boots[/url]
[url=http://www.esaleugg.com/ ]ugg boots[/url]
[url=http://www.esaleugg.com/ ]cheap uggs[/url]
[url=http://www.esaleugg.com/ ]uggs for cheap[/url]
[url=http://www.esaleugg.com/ ]ugg boots sale[/url]
[url=http://www.prettyuggboots.com ]prettyuggboots.com ugg boots website sales AAA replica ugg boots ,50%-70% Off Freeshipping cheap ugg boot,fake ugg boots ,UGG sheepskin shoes,UGG celtic sheepskin,Best after-sale service and fast delivery![/url]
[url=http://www.prettyuggboots.com/ ]ugg boots website[/url]
[url=http://www.prettyuggboots.com/ ]replica ugg boots[/url]
[url=http://www.prettyuggboots.com/ ]ugg boots[/url]
[url=http://www.prettyuggboots.com/ ]cheap uggs[/url]
[url=http://www.prettyuggboots.com/ ]cheap ugg boot[/url]
[url=http://www.prettyuggboots.com/ ]fake ugg boots[/url]
[url=http://www.prettyuggboots.com/ ]wholesale ugg boots[/url]
This doesn't seem to work for me...
Hey do you know why my phone shuts off almost every other time I close the phone shut?! It's driving me crazy and its not because I have low battery.
Hey do you know why my phone shuts off almost every other time I close the phone shut?! It's driving me crazy and its not because I have low battery.
This communicating provided by you is rale micturate for prudish cerebration. and I dont believe omens its just the narrow thinking.
I am quite excited with all the article content of your site.
The information and the detail were just perfect. I think that your perspective is deep, its just well thought out and really fantastic to see someone who knows how to put these thoughts down
The information and the detail were just perfect. I think that your perspective is deep, its just well thought out and really fantastic to see someone who knows how to put these thoughts down
I think you could try this:
((NumToValidate!=null))
I think you could try this:
((NumToValidate!=null))
This is cool. I just wanted to let you know how much I enjoy reading the blog, and hope you keep posting such great material.
This is cool. I just wanted to let you know how much I enjoy reading the blog, and hope you keep posting such great material.
The information and the detail were just perfect.
The information and the detail were just perfect.
The information and the detail were just perfect.
Do you know how the random.next selects the random number? Meaning Does every possibility(number) have an equal chance/probability of occurring? I am trying to have something specific done 65% of the time it is prompted
Do you know how the random.next selects the random number? Meaning Does every possibility(number) have an equal chance/probability of occurring? I am trying to have something specific done 65% of the time it is prompted
My solutution is for those cases you need a good "start" seed for a long series of random numbers, because the numbers in the random class is random itself. The most important thing is NOT to shuffle in the random number array BUT to get different startpoints in the random array.
This codes is something that I have been looking for... Thanks for this.
Interesting topic what you have shared with us. Your writing skill is really very appreciative. I love when you share your views through the best articles.Keep sharing and posting articles like these.This article has helped me a lot.Keep posting this stuff.
Always inadvertently see things like this, I am very interested, unable to hold oneself back to share with the people around me have a look. I support your ideas, and I wish you make persistent efforts.
This is a fantastic website and I can not recommend you guys enough. Full of useful resource and great layout very easy on the eyes. Please do keep up this great work.
Do you know how the random.next selects the random number? Meaning Does every possibility(number) have an equal chance/probability of occurring? I am trying to have something specific done 65% of the time it is prompted
You really make it seem so easy with your presentation but I find this topic to be really something which I think I would never understand.
Truly impressive and nice information,it's good material to study this post increases my knowledge.
Appreciate it...
Truly impressive and nice information,it's great material to read through this post increases my knowledge.
Thanks...
Truly impressive and nice information,it's good material to study this post increases my knowledge.
Appreciate it...
I cant stop looking over this. Its so cool, so rich in information i always just didnt know. Im glad to discover that individuals are covering this issue in this particular smart way, showing us all different sides to it. Youre an incredible blogger. Please continue the good work. I cant wait to read whats next.
I came across this and interesting stuff is present here.I will bookmark your website and share with my friends. I am waiting for your next interesting post.
because the numbers in the random class is random itself. The most important thing is NOT to shuffle in the random number array. Enter Technology
i got alot of inforamtion here
This also didn't work as well as I was hoping, it didn't execute the way it did for you, but I think I just found a fix I'll post my issue and the solution in case anyone else is running into the same issue as me. Besides that very good walk-through for IE!
Milgard vinyl windows
Interesting topic what you have shared with us. Your writing skill is really very appreciative. I love when you share your views through the best articles.Keep sharing and posting articles like these.This article has helped me a lot.Keep posting this stuff.
Interesting topic what you have shared with us. Your writing skill is really very appreciative. I love when you share your views through the best articles.Keep sharing and posting articles like these.This article has helped me a lot.Keep posting this stuff.
Interesting topic what you have shared with us. Your writing skill is really very appreciative. I love when you share your views through the best articles.Keep sharing and posting articles like these.This article has helped me a lot.Keep posting this stuff.
Interesting topic what you have shared with us. Your writing skill is really very appreciative. I love when you share your views through the best articles.Keep sharing and posting articles like these.This article has helped me a lot.Keep posting this stuff.
Interesting topic what you have shared with us. Your writing skill is really very appreciative. I love when you share your views through the best articles.Keep sharing and posting articles like these.This article has helped me a lot.Keep posting this stuff.
Interesting topic what you have shared with us. Your writing skill is really very appreciative. I love when you share your views through the best articles.Keep sharing and posting articles like these.This article has helped me a lot.Keep posting this stuff.
Interesting topic what you have shared with us. Your writing skill is really very appreciative. I love when you share your views through the best articles.Keep sharing and posting articles like these.This article has helped me a lot.Keep posting this stuff.
Interesting topic what you have shared with us. Your writing skill is really very appreciative. I love when you share your views through the best articles.Keep sharing and posting articles like these.This article has helped me a lot.Keep posting this stuff.
I love when you share your views through the best articles.Keep sharing and posting articles like these.This article has helped me a lot.Keep posting this stuff.
I am very thank you to share this article, it is very good, thanks mate!
It really is almost the 1st time My partner and i knowledge the like. In fact I'm considering making my own a single.The major search engines results pages are quite obvious, so in retrospect they will function. Simple.Thus appreciate your that.Very interesting blog. Alot of blogs I see these days don't really provide anything that I'm interested in, but I'm most definately interested in this one. Just thought that I would post and let you know.
those cases you need a good "start" seed for a long series of random numbers, because the numbers in the random class is random itself.
It is well that from time to time temporary files are erased. This can improved PC performance.
Excellent read, I just passed this onto a friend who was doing some research on that. And he actually bought me lunch as I found it for him smile Therefore let me rephrase that: Thank you for lunch.I dare to continue his good deed, get a good night!
I am sure many of you will be having similar problem.
I enjoy reading the blog, and hope you keep posting such great material.
when you look at the Temporary Internet Files in windows explorer, it shows everything as if it was all there.
not working rply pls...
Error:"Error 1 An object reference is required for the non-static field, method, or property 'ConsoleApplication1.Program.ClearFolder(System.IO.DirectoryInfo)' C:\Users\Chintan\Documents\Visual Studio 2008\Projects\ConsoleApplication1\ConsoleApplication1\Program.cs 14 13 ConsoleApplication1
"
Where else could anyone get that kind of information in such a perfect way of writing?
It is well that from time to time temporary files are erased. This can improved PC performance.
This also didn't work as well as I was hoping
Really very useful tips are provided here. Thank you so much. Keep up the good works.
This is a great article, when I try and explain the importance of Keyword research to clients I sometimes really struggle.
those cases you need a good "start" seed for a long series of random numbers, because the numbers in the random class is random itself.
nice post,thanks for sharing! BTW,check out my new android 4.0 tablet china wholesale.
Thanks for sharing this, you run a wonderful blog filled with good posts.I hope you will keep us update about environmental conversation. Thank you so much in Advance.
I am very much pleased with the contents you have mentioned. I wanted to thank you for this great article.
I really appreciate the believed that you put into this content. This subject has been something I have been looking into for a few time and your publish is one of the best I have study.
Related Source Code
Related Tutorials
C# Job SearchFrom the creators of Geekpedia, a revolutionary new coupon website!
BargainEZ has coupons codes, printable coupons, bargains and it is the leading source of Passbook coupons for iPhone and iPod touch devices.