<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Рекурсивно заменить строку в реестре]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11667&amp;type=atom" />
	<updated>2016-06-03T16:10:47Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11667</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Рекурсивно заменить строку в реестре]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104655#p104655" />
			<content type="html"><![CDATA[<p>Спасибо!</p>]]></content>
			<author>
				<name><![CDATA[semiono]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33942</uri>
			</author>
			<updated>2016-06-03T16:10:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104655#p104655</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Рекурсивно заменить строку в реестре]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104654#p104654" />
			<content type="html"><![CDATA[<p>Или, может, так быстрее будет, не проверял:<br /></p><div class="codebox"><pre><code>SetBatchLines, -1
for k, v in [&quot;HKCR&quot;, &quot;HKU&quot;, &quot;HKCU&quot;, &quot;HKCR&quot;, &quot;HKCC&quot;]
	Loop, Reg, % v, R
	{
		if (A_LoopRegType = &quot;REG_SZ&quot;)  {
			RegRead, OutputVar
			if InStr(OutputVar, &quot;C:\Program Files&quot;)
				RegWrite, % RegExReplace(OutputVar, &quot;\QC:\Program Files\E&quot;, &quot;D:\zz\Program Files&quot;)
		}
	}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-06-03T16:08:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104654#p104654</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Рекурсивно заменить строку в реестре]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104653#p104653" />
			<content type="html"><![CDATA[<p>Так:<br /></p><div class="codebox"><pre><code>SetBatchLines, -1
for k, v in [&quot;HKCR&quot;, &quot;HKU&quot;, &quot;HKCU&quot;, &quot;HKCR&quot;, &quot;HKCC&quot;]
	Loop, Reg, % v, R
	{
		RegRead, OutputVar
		if (A_LoopRegType = &quot;REG_SZ&quot; &amp;&amp; InStr(OutputVar, &quot;C:\Program Files&quot;))
			RegWrite, % RegExReplace(OutputVar, &quot;\QC:\Program Files\E&quot;, &quot;D:\zz\Program Files&quot;)
	}</code></pre></div><p>Перед изменением реестра делайте бекап.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-06-03T16:05:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104653#p104653</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Рекурсивно заменить строку в реестре]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104651#p104651" />
			<content type="html"><![CDATA[<p>Чтобы содержал строку, всмысле там может быть &quot;C:\Program Files\Windows Media Pleer&quot; и что угодно.<br />Тут видимо регулярные выражения надо подключить...</p><p>Я новичёк, читаю документацию, но пока не могу начать, сложно.</p><p>Надо чтобы менялся заданный паттерн * &quot;Program Files&quot; * рекурсивно обходя реестр на совпадения</p><p>Диалоги никакие не нужны, просто работающий скрипт.<br />Нужно для того чтобы не делать это вручную</p>]]></content>
			<author>
				<name><![CDATA[semiono]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33942</uri>
			</author>
			<updated>2016-06-03T15:45:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104651#p104651</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Рекурсивно заменить строку в реестре]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104650#p104650" />
			<content type="html"><![CDATA[<p>Непонятно, нужно чтобы ключ имел значение &quot;C:\Program Files&quot;, или содержал эту строку?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-06-03T15:38:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104650#p104650</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Рекурсивно заменить строку в реестре]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104645#p104645" />
			<content type="html"><![CDATA[<p>Помогите составить скрипт, поиск и замена значения параметра, <br />например: REG_SZ: &quot;C:\Program Files&quot; на &quot;D:\zz\Program Files&quot;</p>]]></content>
			<author>
				<name><![CDATA[semiono]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33942</uri>
			</author>
			<updated>2016-06-03T14:08:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104645#p104645</id>
		</entry>
</feed>
