Skip to content

Instantly share code, notes, and snippets.

@bdamusis
Forked from AndrewBarfield/gist:2552013
Last active August 29, 2015 14:05
Show Gist options
  • Save bdamusis/3c198a5541231ef5839b to your computer and use it in GitHub Desktop.
Save bdamusis/3c198a5541231ef5839b to your computer and use it in GitHub Desktop.
echo off
REM Replace [[[USER]]] with your local user account name
REM Clean Libraries
del /Q /S "C:\Users\[[[USER]]]\Contacts\*.*" > nul
del /Q /S "C:\Users\[[[USER]]]\Downloads\*.*" > nul
del /Q /S "C:\Users\[[[USER]]]\Music\*.*" > nul
del /Q /S "C:\Users\[[[USER]]]\Pictures\*.*" > nul
del /Q /S "C:\Users\[[[USER]]]\Videos\*.*" > nul
del /Q /S "C:\Users\Public\*.*" > nul
REM Clean Temp Folders
rmdir /Q /S "C:\Users\[[[USER]]]\AppData\Local\Temp" > nul
mkdir "C:\Users\[[[USER]]]\AppData\Local\Temp" > nul
rmdir /Q /S "C:\Users\[[[USER]]]\AppData\LocalLow\Temp" > nul
mkdir "C:\Users\[[[USER]]]\AppData\LocalLow\Temp" > nul
rmdir /Q /S "C:\Users\All Users\Temp" > nul
mkdir "C:\Users\All Users\Temp" > nul
rmdir /Q /S "C:\Program Files (x86)\Temp" > nul
mkdir "C:\Program Files (x86)\Temp" > nul
REM Clean Special System Folders
rmdir /Q /S "C:\$RECYCLE.BIN" > nul
REM Disable Hibernate
powercfg.exe /hibernate off > nul
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment