Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- cd /D %temp%
- echo %CD% | find /I "AppData\Local\Temp" >NUL
- if NOT %ERRORLEVEL% EQU 0 exit
- takeown /R /F "%temp%\*" /D Y /SKIPSL >NUL
- icacls "%temp%\*" /reset /T /C >NUL
- attrib -R -S -H "%temp%\*" /S /D >NUL
- del /S /Q "%temp%\*" >NUL 2>&1
- for /D %%f in ("%temp%\*") do rd /S /Q "%%f" >NUL 2>&1
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement