Out
Full Member | Редактировать | Профиль | Сообщение | ICQ | Цитировать | Сообщить модератору G14 Ты имеешь ввиду http://support.microsoft.com/default.aspx?scid=kb;en-us;225087 ?? А имеено: Цитата: Converting a Registry Change into ADM Keywords The biggest challenge may be finding a useful registry change that you want to distribute. For example, take the following change that allows you to move the printer spool folder. Remember that before you point the spool to a new folder, that folder must be created. You can then make the following change to the registry: WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk. 1. Start Registry Editor (Regedt32.exe). 2. Locate the DefaultSpoolDirectory value under the following key in the registry: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Print\Printers NOTE: The above registry key is one path; it has been wrapped for readability. 3. On the Edit menu, click String, type X:\Pathname (for example, D:\Printing), and then click OK. 4. Quit Registry Editor. This change to the registry must be converted into a template format so that HKEY becomes CLASS (Machine or User), Key becomes KEYNAME, and Value becomes VALUENAME (followed by NUMERIC if the type is BINARY or DWORD). Creating an ADM File ADM files can be created with any text editor. Create a file following the block-structure syntax of the *.adm language: • Quotation marks around terms with spaces • Block structures have a beginning and an end • Save with *.adm extension (not .txt) To create a ADM file template: 1. Start NotePad or any text editor to create your template. 2. Create an .ADM file following the rules outlined above. For example: CLASS MACHINE CATEGORY "How To Test" POLICY "Change Spool Directory" KEYNAME "System\CurrentControlSet\Control\Print\Printers" PART "Spool Directory" EDITTEXT VALUENAME "DefaultSpoolDirectory" END PART END POLICY END CATEGORY Spacing does not matter. If a name has a space in it, it must be surrounded by quotation marks. As a good practice, surround all labels, keynames, and valuenames with quotation marks. Remember to save the file with a .ADM extension. | Просто, если ты имеешь именно эту статью, то следуя инструкциям, у меня, к сожалению, у меня ничего не получается... Даже создавая тестовый adm файл, который описан в статье... Посему... либо нужно укаать, какой-нибудь рабочий пример (проще найти реально рабочий adm), либо искать другие пути.
---------- Кто страшиться упасть - тот недостоин неба |
| Всего записей: 525 | Зарегистр. 02-07-2002 | Отправлено: 13:18 21-01-2006 | Исправлено: Out, 18:07 21-01-2006 |
|