purging VSWebCache and Temporary ASP.Net files
By Jeroen on Monday 4 August 2008, 13:00 - Permalink
Here's my batch script to purge the VS caches (VSWebCache and Temporary ASP.Net files)
@echo off
iisreset /stop
echo clearing VSWebCache
rmdir /s /q "%USERPROFILE%\VSWebCache"
echo Clearing Temporary ASP.Net Files
for /d %%d in ("%SYSTEMROOT%\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\*") do echo %%d && rmdir /s /q "%%d"
for /d %%d in ("%SYSTEMROOT%\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\*") do echo %%d && rmdir /s /q "%%d"
iisreset /start

Comments
This is awesome! Thanks. VSWebCache is annoying.