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



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:

Anonymous said...


Unknown said...


Unknown said...


Post a Comment