rosalin
27-03-2015, 11:16
Ребята удаляю кеш в нескольких профилях
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 /a "%Profiles%\%%I\Local Settings\Application Data\Google\Chrome\User Data\Default\Cache\*.*"
rem For /D %%k in ("%Profiles%\%%I\Local settings\Application data\Mozilla\Firefox\Profiles\????????.???????\cache2\entries") do rd /s /q "%%k"
rem For /D %%k in ("%Profiles%\%%I\Local settings\Application data\Mozilla\Firefox\Profiles\u7it6mn7.default\cache2\entries") do del /F /S /Q /a "%%k"\*.*
Del /F /S /Q /a "%Profiles%\%%I\Local settings\Application data\Mozilla\Firefox\Profiles\????????????????\cache2\entries\*.*"
)
неудаеться победить Firefox , как заменить Profiles\u7it6mn7.default комбинация Profiles\????????.??????? или Profiles\*.??????? не помогает , путь к кешу Firefox хранит в файле profiles.ini, путь к нему
"%Profiles%\%%I\Application Data\Mozilla\Firefox" сам файлик содержанием
[General]
StartWithLastProfile=1
[Profile0]
Name=default
IsRelative=1
Path=Profiles/u7it6mn7.default
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 /a "%Profiles%\%%I\Local Settings\Application Data\Google\Chrome\User Data\Default\Cache\*.*"
rem For /D %%k in ("%Profiles%\%%I\Local settings\Application data\Mozilla\Firefox\Profiles\????????.???????\cache2\entries") do rd /s /q "%%k"
rem For /D %%k in ("%Profiles%\%%I\Local settings\Application data\Mozilla\Firefox\Profiles\u7it6mn7.default\cache2\entries") do del /F /S /Q /a "%%k"\*.*
Del /F /S /Q /a "%Profiles%\%%I\Local settings\Application data\Mozilla\Firefox\Profiles\????????????????\cache2\entries\*.*"
)
неудаеться победить Firefox , как заменить Profiles\u7it6mn7.default комбинация Profiles\????????.??????? или Profiles\*.??????? не помогает , путь к кешу Firefox хранит в файле profiles.ini, путь к нему
"%Profiles%\%%I\Application Data\Mozilla\Firefox" сам файлик содержанием
[General]
StartWithLastProfile=1
[Profile0]
Name=default
IsRelative=1
Path=Profiles/u7it6mn7.default