<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; VBS: Извлечь строки по списку]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=12460</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12460&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «VBS: Извлечь строки по списку».]]></description>
		<lastBuildDate>Fri, 17 Feb 2017 13:54:57 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: VBS: Извлечь строки по списку]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=112703#p112703</link>
			<description><![CDATA[<p><strong>Flasher</strong>, великолепно. Ты, как всегда, лучший.</p>]]></description>
			<author><![CDATA[null@example.com (Parazit)]]></author>
			<pubDate>Fri, 17 Feb 2017 13:54:57 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=112703#p112703</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBS: Извлечь строки по списку]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=112701#p112701</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p><span style="color: green">&nbsp; &nbsp; If F &lt;&gt; &quot;&quot; And <strong>Not</strong> Dict.Exists(F) Then S = S &amp; vbCrLf &amp; F</span></p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (Flasher)]]></author>
			<pubDate>Fri, 17 Feb 2017 13:51:36 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=112701#p112701</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBS: Извлечь строки по списку]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=112699#p112699</link>
			<description><![CDATA[<p><strong>Flasher</strong>, задача немного изменилась.</p>]]></description>
			<author><![CDATA[null@example.com (Parazit)]]></author>
			<pubDate>Fri, 17 Feb 2017 13:46:14 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=112699#p112699</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBS: Извлечь строки по списку]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=112698#p112698</link>
			<description><![CDATA[<p><span style="color: green">А мне точки в твоих предложениях.</span></p><div class="quotebox"><cite>Parazit пишет:</cite><blockquote><p>строки, которые <strong>присутствуют</strong></p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (Flasher)]]></author>
			<pubDate>Fri, 17 Feb 2017 13:44:39 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=112698#p112698</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBS: Извлечь строки по списку]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=112696#p112696</link>
			<description><![CDATA[<p><strong>Flasher</strong>, мне нужны различия.</p>]]></description>
			<author><![CDATA[null@example.com (Parazit)]]></author>
			<pubDate>Fri, 17 Feb 2017 13:40:01 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=112696#p112696</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBS: Извлечь строки по списку]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=112692#p112692</link>
			<description><![CDATA[<div class="codebox"><pre><code>List1 = &quot;C:\Список1.txt&quot;
List2 = &quot;C:\Список2.txt&quot;
List3 = &quot;C:\Список_совпавших_строк.txt&quot;

Set Dict = CreateObject(&quot;Scripting.Dictionary&quot;)
Set FSO  = CreateObject(&quot;Scripting.FileSystemObject&quot;)

With FSO.OpenTextFile(List1)
  Do : F = Trim(.ReadLine)
    If F &lt;&gt; &quot;&quot; Then Dict.Add F, &quot;&quot;
  Loop Until .AtEndOfStream : .Close
End With

With FSO.OpenTextFile(List2)
  Do : F = Trim(.ReadLine)
    If F &lt;&gt; &quot;&quot; And Dict.Exists(F) Then S = S &amp; vbCrLf &amp; F
  Loop Until .AtEndOfStream : .Close
End With

If Not IsEmpty(S) Then FSO.CreateTextFile(List3, 1).Write Mid(S, 3)</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Flasher)]]></author>
			<pubDate>Fri, 17 Feb 2017 13:09:11 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=112692#p112692</guid>
		</item>
		<item>
			<title><![CDATA[VBS: Извлечь строки по списку]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=112688#p112688</link>
			<description><![CDATA[<p>Привет. Такая задача.<br />Вот у меня есть файл <strong>C:\111.txt</strong>. В нём надо найти определённые строки, которые присутствуют в файле-списке <strong>C:\222.txt</strong>.<br />И вывести эти строки в файл <strong>C:\Output.txt</strong>.</p>]]></description>
			<author><![CDATA[null@example.com (Parazit)]]></author>
			<pubDate>Fri, 17 Feb 2017 11:34:03 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=112688#p112688</guid>
		</item>
	</channel>
</rss>
