Thursday, March 21, 2013

How to delete dot net temporary files


Sometimes you need to delete your .net temporary files. Here is a quick little batch file to help you do it. Just double-click!

set net2_32="C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\*"
set net2_64="C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\*"
set net4_32="C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\*"
set net4_64="C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\*"

REM stop iis
net stop w3svc

REM delete .net temp files
FOR /D %%i IN (%net2_32%) DO RD /S /Q "%%i" DEL /Q /F %net2_32%
FOR /D %%i IN (%net2_64%) DO RD /S /Q "%%i" DEL /Q /F %net2_64%
FOR /D %%i IN (%net4_32%) DO RD /S /Q "%%i" DEL /Q /F %net4_32%
FOR /D %%i IN (%net4_64%) DO RD /S /Q "%%i" DEL /Q /F %net4_64%

REM start iis
net start w3svc



Enjoy!

13 comments:

João Almeida said...
This comment has been removed by the author.
Anonymous said...

Can I get your contact email?

Anonymous said...

please email me here: progenic.dp@gmail.com

Anonymous said...

trtt

John Peter said...

Great Article

ASP.NET Training
Dot Net Training in Chennai

Unknown said...

h

Unknown said...

h

Sowmiya said...

your difference answer is really nice and thus it is really helpful and very much interesting , now i came to know about many users thus it is really a great information it is really awesome too.


Best Software Testing Training in Chennai

for IT the said...

I have read your blog its very attractive and impressive. I like it your blog.

Dot Net Training in Chennai Dot Net Training in Chennai .Net Online Training .Net Online Training Dot Net Training in Chennai Dot Net Training in Chennai


Dot Net Online Training Dot Net Online Training LINQ Online Training LINQ Online Training ASP.NET Online Training ASP.NET Online Training

sunilkumarkuppam said...

Thanks for sharing the information about the dot net and keep updating us.It is really useful to me.
DOT NET Training in Chennai
DOT NET Course in Chennai

varshini devi said...

Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing.
DOT NET Training Chennai|Dot net courses in chennai 

Amirtha rao said...

Hope your post get more positive response, Nice blog
Regards,
PHP Training in Chennai|PHP Course in Chennai

Paul Miller said...

Quite useful content... keep blogging
Regards,
web designing classes in chennai|web design training chennai

Post a Comment