Skip to content

Instantly share code, notes, and snippets.

@MichaelPaulukonis
Last active December 28, 2015 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MichaelPaulukonis/7529312 to your computer and use it in GitHub Desktop.
Save MichaelPaulukonis/7529312 to your computer and use it in GitHub Desktop.
reset IIS and clear tempfiles -- either all of them, or for a specific application. Target the framework as appropriate
@echo OFF
echo %time%
echo now executing IISRESET
iisreset
echo now removing tempfiles
REM THIS REMOVES ALL TEMPFILES >> NUCLEAR OPTION!!! <<
REM pushd "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\"
REM for /d %%X in (*.*) do rd /s /q %%X
REM popd
REM replace <specific directory> with the dir of the application you want cleared out
rmdir /s /q "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\<specific directory>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment