<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; VBScript/cmd: коды выхода/возврата через .Run]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=10221</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=10221&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «VBScript/cmd: коды выхода/возврата через .Run».]]></description>
		<lastBuildDate>Tue, 09 Dec 2014 12:57:01 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: VBScript/cmd: коды выхода/возврата через .Run]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=89071#p89071</link>
			<description><![CDATA[<div class="quotebox"><cite>greg zakharov пишет:</cite><blockquote><p>Бог в помощь.</p></blockquote></div><p>Благодарю, но в этих вопросах она мне точно не потребуется. <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" /></p>]]></description>
			<author><![CDATA[null@example.com (Flasher)]]></author>
			<pubDate>Tue, 09 Dec 2014 12:57:01 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=89071#p89071</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBScript/cmd: коды выхода/возврата через .Run]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=89062#p89062</link>
			<description><![CDATA[<div class="quotebox"><cite>Flasher пишет:</cite><blockquote><p>Не понял... Нет, не догадываюсь...</p></blockquote></div><p>Бог в помощь.</p>]]></description>
			<author><![CDATA[null@example.com (greg zakharov)]]></author>
			<pubDate>Tue, 09 Dec 2014 08:41:57 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=89062#p89062</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBScript/cmd: коды выхода/возврата через .Run]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=89061#p89061</link>
			<description><![CDATA[<div class="quotebox"><cite>greg zakharov пишет:</cite><blockquote><p>Пардон, а на что в выдаче того же Shell.Application метка Type? По ней и ориентироваться: папка или файл, - так что...</p></blockquote></div><p>Не понял, как это относится к обсуждаемой уникальности, и при чём тут Shell.Application...<br /></p><div class="quotebox"><cite>greg zakharov пишет:</cite><blockquote><p>Что же до универсальности - закладываться не стоит. Почему, полагаю, догадаетесь сами.</p></blockquote></div><p>Нет, не догадываюсь, ибо в разных контекстах это понятие может иметь разные тождества и вовсе не обязано претендовать на аналогию с совершенством или абсолютом в достижимости схожих по сути задач.</p>]]></description>
			<author><![CDATA[null@example.com (Flasher)]]></author>
			<pubDate>Tue, 09 Dec 2014 07:32:19 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=89061#p89061</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBScript/cmd: коды выхода/возврата через .Run]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=88999#p88999</link>
			<description><![CDATA[<p>Если интересно, есть вариант и попроще, но он не годится для некоторых методик сжатия архивов.</p><div class="codebox"><pre><code>&#039;...
MsgBox CreateObject(&quot;WScript.Shell&quot;).Run(&quot;cmd /c for /f %# in (&#039;&quot;&quot;&quot;&quot;&quot; &amp; Pr &amp; &quot;&quot;&quot; l -x!*\* &quot;&quot;&quot; &amp;_
Arch &amp; &quot;&quot;&quot;| find /c &quot;&quot;....&quot;&quot;&quot;&quot;&#039;) do exit /b %#&quot;, 0, True)</code></pre></div><p><strong>greg zakharov</strong>, это для универсального случая, как работать с зипами известно.</p>]]></description>
			<author><![CDATA[null@example.com (Flasher)]]></author>
			<pubDate>Mon, 08 Dec 2014 16:37:00 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=88999#p88999</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBScript/cmd: коды выхода/возврата через .Run]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=88992#p88992</link>
			<description><![CDATA[<p><strong>greg zakharov</strong><br />Одноимёнными в одной ветви архива могут быть папка и файл. Но мне такие (не считая экспериментальных) ещё не попадались. Пример ясен, но он всё же про другое.</p><p><strong>Yury</strong> как всегда молчком, ещё раз благодарю.<br />Т.е. нужно множество брать ещё и в сдвоенные кавычки. И без ^ обошлось. Хм. А разжевать? )</p>]]></description>
			<author><![CDATA[null@example.com (Flasher)]]></author>
			<pubDate>Mon, 08 Dec 2014 15:57:32 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=88992#p88992</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBScript/cmd: коды выхода/возврата через .Run]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=88989#p88989</link>
			<description><![CDATA[<div class="codebox"><pre><code>Pr = &quot;%ProgramFiles%\7-Zip\7z.exe&quot;
Arch = WScript.Arguments(0)

MsgBox CreateObject(&quot;WScript.Shell&quot;).Run(&quot;cmd /c for /f %# in (&#039;&quot;&quot;&quot;&quot;&quot; &amp; Pr &amp; &quot;&quot;&quot; l -slt &quot;&quot;&quot; &amp;_
Arch &amp; &quot;&quot;&quot;| find &quot;&quot;Path = &quot;&quot;| find /c /v &quot;&quot;\&quot;&quot;&quot;&quot;&#039;) do exit /b %#&quot;, 0, True)</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Yury)]]></author>
			<pubDate>Mon, 08 Dec 2014 15:37:57 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=88989#p88989</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBScript/cmd: коды выхода/возврата через .Run]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=88983#p88983</link>
			<description><![CDATA[<p>Уникальное имя в том смысле, что не дублируется.</p>]]></description>
			<author><![CDATA[null@example.com (greg zakharov)]]></author>
			<pubDate>Mon, 08 Dec 2014 15:12:55 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=88983#p88983</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBScript/cmd: коды выхода/возврата через .Run]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=88981#p88981</link>
			<description><![CDATA[<p>Если вообще, то на командном языке будет нечто вроде:<br /></p><div class="codebox"><pre><code>for /f %i in (&#039;7z l archive ^| findstr /irc:&quot;.\\.&quot; ^| find /c /v &quot;&quot;&#039;) do @set /a %i - 2</code></pre></div><p>Минус два - это эдакий сапресс строк &quot;Listing archive: ...&quot; и &quot;Path = ...&quot;, - можно попробовать и через skip, но это первое пришедшее на ум.</p>]]></description>
			<author><![CDATA[null@example.com (greg zakharov)]]></author>
			<pubDate>Mon, 08 Dec 2014 15:12:09 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=88981#p88981</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBScript/cmd: коды выхода/возврата через .Run]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=88979#p88979</link>
			<description><![CDATA[<p>А как они могут быть неуникальными?</p>]]></description>
			<author><![CDATA[null@example.com (Flasher)]]></author>
			<pubDate>Mon, 08 Dec 2014 15:04:05 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=88979#p88979</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBScript/cmd: коды выхода/возврата через .Run]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=88978#p88978</link>
			<description><![CDATA[<div class="quotebox"><cite>Flasher пишет:</cite><blockquote><p>Пытаюсь получить число корневых элементов.</p></blockquote></div><p>Уникальных или вообще?</p>]]></description>
			<author><![CDATA[null@example.com (greg zakharov)]]></author>
			<pubDate>Mon, 08 Dec 2014 14:56:52 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=88978#p88978</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBScript/cmd: коды выхода/возврата через .Run]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=88971#p88971</link>
			<description><![CDATA[<p>Поспешил с выводами.<br />В чём моя ошибка?<br /></p><div class="codebox"><pre><code>Pr = &quot;%ProgramFiles%\7-Zip\7z.exe&quot;
Arch = WScript.Arguments(0)

MsgBox CreateObject(&quot;WScript.Shell&quot;).Run(&quot;cmd /c &quot;&quot;for /f %# in (`&quot;&quot;&quot; &amp; Pr &amp; &quot;&quot;&quot; l &quot;&quot;&quot; &amp;_
Arch &amp; &quot;&quot;&quot; -slt^| find &quot;&quot;Path = &quot;&quot;^| find /C /V &quot;&quot;\&quot;&quot;`) do exit /b %#&quot;&quot;&quot;, 0, true)</code></pre></div><p>Пытаюсь получить число корневых элементов.</p>]]></description>
			<author><![CDATA[null@example.com (Flasher)]]></author>
			<pubDate>Mon, 08 Dec 2014 13:48:10 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=88971#p88971</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBScript/cmd: коды выхода/возврата через .Run]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=88967#p88967</link>
			<description><![CDATA[<p>Со строками-то проблем нет, нужно только число. Сейчас ещё испытаю на многоразовых find. Если что, вернусь. )</p><p><strong>Add:</strong> всё, разобрался с множествами.</p>]]></description>
			<author><![CDATA[null@example.com (Flasher)]]></author>
			<pubDate>Mon, 08 Dec 2014 12:55:43 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=88967#p88967</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBScript/cmd: коды выхода/возврата через .Run]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=88966#p88966</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>Нет. Это не сработает.</p></blockquote></div><p>Недоглядел «/c» — что Вас интересует число строк. Тогда, да — разбор по «for /f» и вывод. Но с .Exec Вам всё равно придётся работать, если получить надо именно строку.</p>]]></description>
			<author><![CDATA[null@example.com (alexii)]]></author>
			<pubDate>Mon, 08 Dec 2014 12:50:41 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=88966#p88966</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBScript/cmd: коды выхода/возврата через .Run]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=88964#p88964</link>
			<description><![CDATA[<p><strong>Yury</strong><br />Благодарствую. Знание некоторых деталей подвело при формировании похожей строки.<br />А то очень не хотелось останавливаться на этом:<br /></p><div class="codebox"><pre><code>With CreateObject(&quot;WScript.Shell&quot;)
  If InStrRev(WScript.FullName, &quot;WScript.exe&quot;) Then .Run &quot;CScript.exe &quot;&quot;&quot; &amp; WScript.ScriptFullName, 0 Else _
  MsgBox .Exec(&quot;%comspec% /c dir &quot;&quot;%ProgramFiles%&quot;&quot; | find /c &quot;&quot;Windows&quot;&quot;&quot;).StdOut.ReadLine
End With</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Flasher)]]></author>
			<pubDate>Mon, 08 Dec 2014 12:27:32 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=88964#p88964</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBScript/cmd: коды выхода/возврата через .Run]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=88963#p88963</link>
			<description><![CDATA[<div class="codebox"><pre><code>MsgBox CreateObject(&quot;wscript.shell&quot;).Run(&quot;cmd /c &quot;&quot;for /f %i in (&#039;dir /ad/b &quot;&quot;%ProgramFiles%&quot;&quot;^| find /c &quot;&quot;Windows&quot;&quot;&#039;) do exit /b %i&quot;&quot;&quot;, 0, True)</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Yury)]]></author>
			<pubDate>Mon, 08 Dec 2014 12:21:44 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=88963#p88963</guid>
		</item>
	</channel>
</rss>
