lid111
Сразу оговорюсь - не тестировал
Код:
@echo off
setlocal
echo Start....
for %%i in (Q W E R T Y U I P O A S D F G H J K L Z X C V B N M) do (
if not %~d0==%%i: call:clean %%i
)
echo ....Done
goto:eof
:clean
if exist %1:\Windows\Temp (del /s /a /q %1:\Windows\Temp\* 1>nul 2>&1)
if exist %1:\WinNT\Temp (del /s /a /q %1:\WinNT\Temp\* 1>nul 2>&1)
if exist "%1:\Documents and Settings" (
for /d %%i in ("%1\Documents and Settings\*") do (
del /s /a /q "%%i\Local Settings\Temp\*" 1>nul 2>&1
del /s /a /q "%%i\Local Settings\Temporary Internet Files\*" 1>nul 2>&1
)
)
Сразу оговорюсь - не тестировал
Код:
@echo off
setlocal
echo Start....
for %%i in (Q W E R T Y U I P O A S D F G H J K L Z X C V B N M) do (
if not %~d0==%%i: call:clean %%i
)
echo ....Done
goto:eof
:clean
if exist %1:\Windows\Temp (del /s /a /q %1:\Windows\Temp\* 1>nul 2>&1)
if exist %1:\WinNT\Temp (del /s /a /q %1:\WinNT\Temp\* 1>nul 2>&1)
if exist "%1:\Documents and Settings" (
for /d %%i in ("%1\Documents and Settings\*") do (
del /s /a /q "%%i\Local Settings\Temp\*" 1>nul 2>&1
del /s /a /q "%%i\Local Settings\Temporary Internet Files\*" 1>nul 2>&1
)
)