@echo off echo. echo TEMP fajlok torlese - Windows VISTA eseten echo Hasznalatahoz Rendszergazdai jog szukseges! echo. echo C:\WINDOWS\Temp echo C:\WINDOWS\SoftwareDistribution\Download echo C:\Users\%USERNAME%\AppData\Local\Temp echo C:\Users\Rendszergazda\AppData\Local\Temp echo C:\Users\Administrator\AppData\Local\Temp echo. echo Tovabbi kiuritendo konyvtarak is megadhatoak... echo A nem torolheto fajlokat / konyvtarakat atugorja. echo A c:\windows\$ntxxxx (rejtett, tomoritett) konyvtarakat kezzel kell torolni! echo. echo Temporary files deletion for Windows VISTA echo You need Administrator privileges to run it! echo If file / directory deletion is not possible, those will be skipped. echo Just add more directories, if you need. echo Delete the c:\windows\$ntxxxx (hidden and compressed) directories manually. rem If the system has been working properly after the updates, you can delete the hot fix rem backup files as well as the add/remove registry entries by using the utility at this page rem http://www.dougknox.com/xp/utils/xp_hotfix_backup.htm rem this util deletes their "uninstallers", which are in the hidden and compressed directories. rem It is free, but does not allow you to select which updates to remove. echo. echo Dolanszky Gyorgy www.dola.hu ver: 2009.09.09 (Press Ctrl+C to exit) pause echo Torles... - File deletion... echo. :0 echo C:\WINDOWS\Temp pushd "C:\WINDOWS\Temp" del /q /f *.* for /f "Tokens=*" %%G in ('dir /B') do rd /s /q "%%G" popd :1 echo C:\WINDOWS\SoftwareDistribution\Download echo directory contains the actual hotfixes downloaded by WinUpdate. pushd "C:\WINDOWS\SoftwareDistribution\Download" del /q /f *.* for /f "Tokens=*" %%G in ('dir /B') do rd /s /q "%%G" popd :2 echo C:\Users\%USERNAME%\AppData\Local\Temp pushd "C:\Users\%USERNAME%\AppData\Local\Temp" del /q /f *.* for /f "Tokens=*" %%G in ('dir /B') do rd /s /q "%%G" popd :3 if not exist "C:\Users\Rendszergazda\AppData\Local\Temp" goto 4 echo C:\Users\Rendszergazda\AppData\Local\Temp pushd "C:\Users\Rendszergazda\AppData\Local\Temp" del /q /f *.* for /f "Tokens=*" %%G in ('dir /B') do rd /s /q "%%G" popd :4 if not exist "C:\Users\Administrator\AppData\Local\Temp" goto 5 echo C:\Users\Administrator\AppData\Local\Temp pushd "C:\Users\Administrator\AppData\Local\Temp" del /q /f *.* for /f "Tokens=*" %%G in ('dir /B') do rd /s /q "%%G" popd :5 :6 :7 rem Ide lehet további könytárakat megadni... rem Add more directories here... :vege @echo off echo. echo Hibauzenetekkel nem kell torodni. - Do not worry is you see same error messages. echo Vege... It has finished... echo.