adminbd

Записи по mssql,oracle,windows и linux

Have a Question?

If you have any question you can ask below or enter what you are looking for!

удаление кеш 1с у всех пользователей + чиста темп на терминальном сервере

SetLocal EnableExtensions

 

For /F "Tokens=2*" %%I In ('Reg Query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList" /V ProfilesDirectory') Do Set Profiles=%%J

Call Set Profiles=%Profiles%

 

For /F "Delims=" %%I In ('Dir /B /AD-S-H "%Profiles%" ^| FindStr /V /B /I /C:"All Users"') Do (

  Del /F /S /Q "%Profiles%\%%I\Application Data\1C\1Cv82\*.*"

  Del /F /S /Q "%Profiles%\%%I\Local Settings\Application Data\1C\1Cv82\*.*"

 

  Del /F /S /Q "%Profiles%\%%I\Local Settings\Temp\*.*"

  Del /F /S /Q "%Profiles%\%%I\Local Settings\Temporary Internet Files\*.*"

 

  Del /F /S /Q "%Profiles%\%%I\AppData\Local\Temp\*.*"

  Del /F /S /Q "%Profiles%\%%I\AppData\Local\Microsoft\Windows\Temporary Internet Files\*.*"

 

)

 

Leave a Reply

Your email address will not be published. Required fields are marked *

You can use these HTML tags and attributes <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>