Компьютерный форум OSzone.net  

Компьютерный форум OSzone.net (http://forum.oszone.net/index.php)
-   Скриптовые языки администрирования Windows (http://forum.oszone.net/forumdisplay.php?f=102)
-   -   Удаление временных файлов во всех профилях (http://forum.oszone.net/showthread.php?t=297540)

rosalin 27-03-2015 11:16 2488331

Удаление временных файлов во всех профилях
 
Ребята удаляю кеш в нескольких профилях

Код:

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


Foreigner 27-03-2015 14:08 2488407

rosalin, Только вчера обсуждали http://forum.oszone.net/thread-297517.html

rosalin 27-03-2015 15:30 2488458

Да только не пойму как прикрутить к моему пакетнику выполнение для всех юзер профилей??


Время: 21:22.

Время: 21:22.
© OSzone.net 2001-