FreemanRU
Silver Member | Редактировать | Профиль | Сообщение | ICQ | Цитировать | Сообщить модератору Cuba Цитата: А не просвещенным можно как нить пояснить что и куда втыкается | Цитата: By running the disk cleanup manager's executable file—Cleanmgr.exe—from a command line, you can declare cleanup profiles. These profiles are composed of a subset of the available handlers and are given a unique numeric label. This allows you to automate the running of different sets of handlers at different times. The command line "cleanmgr.exe /sageset:nnnn", where nnnn is a unique numeric label, displays a UI allowing you to choose the handlers to be included in that profile. As well as defining the profile, the sageset parameter also writes a value named StateFlagsnnnn, where nnnn is the label you used in the parameter, to all of the subkeys under VolumeCaches . There are two possible data values for those entries. 0: Do not run this handler when this profile is run. 2: Include this handler when this profile is run. For example, suppose that the command line "cleanmgr.exe /sageset:1234" is run. In the UI that is presented, the user chooses Downloaded Program Files, but does not choose Temporary Internet Files. The following values are then written to the registry. HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Downloaded Program Files StateFlags1234= 0x00000002 HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Internet Cache Files StateFlags1234= 0x00000000 The command line "cleanmgr.exe /sagerun:nnnn", where the value of nnnn matches the label declared with the sageset parameter, runs all of the handlers selected in that profile. A generic StateFlags value is written to the registry when Disk Cleanup is run normally. This value simply stores the state (checked or unchecked) of the handler the last time it was presented as an option to the user. There are two possible data values for those entries. 0: The handler was not selected. 1: The handler was selected. | Т.е. делаем рег файл с нужным параметром StateFlags, потом экспортируем его на все компы, затем можно запускать cleanmgr.exe /sagerun:nnnn, где nnnn - это номер, который стоит после StateFlags. Кол-во не ограничено (в документации), т.е. разрешено от 1 до 65535 (дкмаю болше не надо пытаться). Можно создать несколько сценариев. Еще подробнее? А статья кстати здравая. Там рассказывается как свои собственные удалялки делать, отличные от стандартных. И если в ключах VolumeCaches поковыряться, можно много полезного для себя найти, н-р есть такой параметр у Setup Log Files как FileList. Туда можно напхать свои маски. У того же Setup Log Files и Temporary Files есть параметр Folder. В первом случае - это где искать эти маски, во втором - какую папку очищать. Т.е. ничего нам не мешает создать еще один подраздел, н-р Temporary Files2, перенести все параметры из Temporary Files (особенно (значение по умолчанию), т.к. он определяет поведение объекта), а Folder задать такой как нам нужен.
---------- Если не получается с первого раза - прочти инструкцию. (с) "Откуда нам знать, что такое война, если мы не знаем мира..."(с) Записки |
|