<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; VBS: получить результат errorlevel работы консольной программы]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=6953&amp;type=atom" />
	<updated>2012-03-17T12:48:40Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=6953</id>
		<entry>
			<title type="html"><![CDATA[Re: VBS: получить результат errorlevel работы консольной программы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=57978#p57978" />
			<content type="html"><![CDATA[<p><a href="http://www.script-coding.com/WSH/WshShell.html#4.2.6.">Может?</a>. Не?</p>]]></content>
			<author>
				<name><![CDATA[DnsIs]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26282</uri>
			</author>
			<updated>2012-03-17T12:48:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=57978#p57978</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: получить результат errorlevel работы консольной программы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=57977#p57977" />
			<content type="html"><![CDATA[<p>Все разобрался, туплю под вечер, Return= WshShell.Run (blablabla, 0, true)</p>]]></content>
			<author>
				<name><![CDATA[Bsplesk]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27721</uri>
			</author>
			<updated>2012-03-17T12:48:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=57977#p57977</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[VBS: получить результат errorlevel работы консольной программы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=57975#p57975" />
			<content type="html"><![CDATA[<p>Сообственно вопрос, как получить получить результат работы, точнее нужен (errorlevel) консольной программы.<br />Пробую использовать rar.exe, через wshell.run </p><div class="codebox"><pre><code>Return= WshShell.Run (&quot;&quot;&quot;&quot; &amp; path_winRAR &amp; &quot;&quot;&quot;&quot; &amp; &quot; &quot; &amp; &quot;e&quot; &amp; &quot; &quot; &amp; &quot;-o+&quot; _
&amp; &quot; &quot; &amp; path_source &amp; dll_name_arhiv &amp; &quot; &quot; &amp; path_setup)   
MsgBox Return</code></pre></div><p>-&nbsp; коды ошибок получить не удалось, постоянно возвращает 0.&nbsp; </p><p>При помощи командного файла делается все просто:<br /></p><div class="codebox"><pre><code>echo off
cls
title пример обработки ошибок консольного winrar

&quot;c:\Program Files\WinRAR\RAR.exe&quot; e -o+ \\ocb_bux\D\!log\GflAx.rar c:\!infa_desktop\

if %errorlevel% ==0 (
    echo Ошибок нет
) else (
    echo Произошли ошибки, номер ошибки = %errorlevel%
)
@color B9
pause</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Bsplesk]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27721</uri>
			</author>
			<updated>2012-03-17T12:07:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=57975#p57975</id>
		</entry>
</feed>
