Имя пользователя:
Пароль:
 

Показать сообщение отдельно

Ветеран


Сообщения: 874
Благодарности: 575

Профиль | Отправить PM | Цитировать


Код: Выделить весь код
@echo off& setLocal enableextensions

for /f "tokens=2*" %%I in ('
 reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList" /v ProfilesDirectory^| findstr /i ProfilesDirectory
') do (
 call pushd "%%J"
 for /f "delims=" %%K in ('dir /ad-h-s/b^| findstr /ivxc:"All Users"') do (
  pushd "%%K\Local Settings"
  del /a/f/s/q "Temp"
  del /a/f/s/q "Temporary Internet Files"
  pushd "Application data\1C\1Cv82"
  for /f "delims=" %%L in ('
   dir /ad/b "????????-????-????-????-????????????"^| findstr /rc:"^........-....-....-....-............$"
  ') do (
   rd /s/q "%%L"
   )
  popd& popd
  )
 popd
 )

del /a/f/s/q "%Systemdrive%\Temp"

endlocal& exit /b 0

Код в работе не проверял!

Отправлено: 04:52, 30-01-2015 | #2