<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; JScript: Обработка TextStream]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=9471&amp;type=atom" />
	<updated>2014-04-10T11:08:46Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=9471</id>
		<entry>
			<title type="html"><![CDATA[Re: JScript: Обработка TextStream]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81631#p81631" />
			<content type="html"><![CDATA[<p>Действительно! Спасибо, буду искать ошибку в другом.</p>]]></content>
			<author>
				<name><![CDATA[kyern]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32069</uri>
			</author>
			<updated>2014-04-10T11:08:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81631#p81631</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: JScript: Обработка TextStream]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81630#p81630" />
			<content type="html"><![CDATA[<p>ReadLine() возвращает значение типа String... Можете проверить с помощью typeof()</p><div class="codebox"><pre><code>with(
 new ActiveXObject(&#039;WScript.Shell&#039;)
 .exec(&#039;graftabl.com&#039;)
 .stdOut
){
  // только третья строка:
  skipLine(),skipLine();
  WScript.echo(typeof(readLine()));
  // весь вывод:
  // WScript.echo(readAll());
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Serge Yolkin]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27503</uri>
			</author>
			<updated>2014-04-10T11:01:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81630#p81630</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: JScript: Обработка TextStream]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81626#p81626" />
			<content type="html"><![CDATA[<p>Следовало бы сразу показать кусок кода для более конкретного объяснения проблемы.<br /></p><div class="codebox"><pre><code>
WshShell = WScript.CreateObject(&quot;WScript.Shell&quot;);
var InStream = WshExec.StdIn;
InStream.WriteLine(connect);
InStream.WriteLine (user);
InStream.WriteLine(&quot;binary&quot;);
InStream.WriteLine (&quot;prompt&quot;);
InStream.WriteLine(&quot;dir&quot;);
InStream.WriteLine(&quot;bye&quot;);
var OutStream = WshExec.StdOut;
while (!OutStream.AtEndOfStream) {
    ParseDIRout(OutStream.ReadLine());
}
</code></pre></div><p>Проблема в том, что в функцию ParseDIRout передается не строка, а объект TextStream, который необходимо обрабатывать как строку</p>]]></content>
			<author>
				<name><![CDATA[kyern]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32069</uri>
			</author>
			<updated>2014-04-10T10:15:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81626#p81626</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: JScript: Обработка TextStream]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81625#p81625" />
			<content type="html"><![CDATA[<p>readAll() ?</p>]]></content>
			<author>
				<name><![CDATA[Serge Yolkin]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27503</uri>
			</author>
			<updated>2014-04-10T09:46:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81625#p81625</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[JScript: Обработка TextStream]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81623#p81623" />
			<content type="html"><![CDATA[<p>Доброго времени суток! Известно, что метод StdOut возвращает объект TextStream. Есть ли какая-нибудь возможность обрабатывать TextStream так же, как и простую строку? Или просто переделать в строку. О варианте записи в текстовый файл и обратном считывании знаю, но рассматриваю его исключительно в качестве крайнего метода.</p>]]></content>
			<author>
				<name><![CDATA[kyern]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32069</uri>
			</author>
			<updated>2014-04-10T09:08:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81623#p81623</id>
		</entry>
</feed>
