Last active
December 28, 2015 16:29
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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