<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"	>
<channel>
	<title>Comments on: getting the exit code from a batch file that is run from a python program</title>
	<atom:link href="http://code-bear.com/bearlog/2007/06/01/getting-the-exit-code-from-a-batch-file-that-is-run-from-a-python-program/feed/" rel="self" type="application/rss+xml" />
	<link>http://code-bear.com/bearlog/2007/06/01/getting-the-exit-code-from-a-batch-file-that-is-run-from-a-python-program/</link>
	<description>Gravity is the root of lightness; stillness, the ruler of movement</description>
	<lastBuildDate>Fri, 19 Feb 2010 10:12:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<atom:link rel="hub" href="http://pubsubhubbub.appspot.com" />
	<atom:link rel="hub" href="http://superfeedr.com/hubbub" />
		<item>
		<title>By: bear</title>
		<link>http://code-bear.com/bearlog/2007/06/01/getting-the-exit-code-from-a-batch-file-that-is-run-from-a-python-program/comment-page-1/#comment-130</link>
		<dc:creator>bear</dc:creator>
		<pubDate>Wed, 11 Nov 2009 23:28:45 +0000</pubDate>
		<guid isPermaLink="false">http://code-bear.com/bearlog/2007/06/01/getting-the-exit-code-from-a-batch-file-that-is-run-from-a-python-program/#comment-130</guid>
		<description>I suspect it&#039;s how NANT is calling the scripts from within it&#039;s code that requires the explicit use of the EXIT keyword - a batch-to-batch invocation probably is handled in a subtly different manner (which is what both of us had to find and solve ;)</description>
		<content:encoded><![CDATA[<p>I suspect it&#39;s how NANT is calling the scripts from within it&#39;s code that requires the explicit use of the EXIT keyword &#8211; a batch-to-batch invocation probably is handled in a subtly different manner (which is what both of us had to find and solve ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://code-bear.com/bearlog/2007/06/01/getting-the-exit-code-from-a-batch-file-that-is-run-from-a-python-program/comment-page-1/#comment-129</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Wed, 11 Nov 2009 19:53:41 +0000</pubDate>
		<guid isPermaLink="false">http://code-bear.com/bearlog/2007/06/01/getting-the-exit-code-from-a-batch-file-that-is-run-from-a-python-program/#comment-129</guid>
		<description>After waiting a lot of time I&#039;m glad I found this trick. I could not figure out why it would return the correct error code to another bat file, but not to NANT.&lt;br&gt;&lt;br&gt;This is what I ended up using for my scripts:&lt;br&gt;&lt;br&gt;GOTO Exit&lt;br&gt;&lt;br&gt;:ResultCode&lt;br&gt;EXIT /B %1&lt;br&gt;&lt;br&gt;:Exit&lt;br&gt;ENDLOCAL &amp; CALL :ResultCode %ERRORLEVEL%</description>
		<content:encoded><![CDATA[<p>After waiting a lot of time I&#39;m glad I found this trick. I could not figure out why it would return the correct error code to another bat file, but not to NANT.</p>
<p>This is what I ended up using for my scripts:</p>
<p>GOTO Exit</p>
<p>:ResultCode<br />EXIT /B %1</p>
<p>:Exit<br />ENDLOCAL &#038; CALL :ResultCode %ERRORLEVEL%</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bear</title>
		<link>http://code-bear.com/bearlog/2007/06/01/getting-the-exit-code-from-a-batch-file-that-is-run-from-a-python-program/comment-page-1/#comment-87</link>
		<dc:creator>bear</dc:creator>
		<pubDate>Wed, 11 Nov 2009 18:28:45 +0000</pubDate>
		<guid isPermaLink="false">http://code-bear.com/bearlog/2007/06/01/getting-the-exit-code-from-a-batch-file-that-is-run-from-a-python-program/#comment-87</guid>
		<description>I suspect it&#039;s how NANT is calling the scripts from within it&#039;s code that requires the explicit use of the EXIT keyword - a batch-to-batch invocation probably is handled in a subtly different manner (which is what both of us had to find and solve ;)</description>
		<content:encoded><![CDATA[<p>I suspect it&#39;s how NANT is calling the scripts from within it&#39;s code that requires the explicit use of the EXIT keyword &#8211; a batch-to-batch invocation probably is handled in a subtly different manner (which is what both of us had to find and solve ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://code-bear.com/bearlog/2007/06/01/getting-the-exit-code-from-a-batch-file-that-is-run-from-a-python-program/comment-page-1/#comment-86</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Wed, 11 Nov 2009 14:53:41 +0000</pubDate>
		<guid isPermaLink="false">http://code-bear.com/bearlog/2007/06/01/getting-the-exit-code-from-a-batch-file-that-is-run-from-a-python-program/#comment-86</guid>
		<description>After waiting a lot of time I&#039;m glad I found this trick. I could not figure out why it would return the correct error code to another bat file, but not to NANT.&lt;br&gt;&lt;br&gt;This is what I ended up using for my scripts:&lt;br&gt;&lt;br&gt;GOTO Exit&lt;br&gt;&lt;br&gt;:ResultCode&lt;br&gt;EXIT /B %1&lt;br&gt;&lt;br&gt;:Exit&lt;br&gt;ENDLOCAL &amp; CALL :ResultCode %ERRORLEVEL%</description>
		<content:encoded><![CDATA[<p>After waiting a lot of time I&#39;m glad I found this trick. I could not figure out why it would return the correct error code to another bat file, but not to NANT.</p>
<p>This is what I ended up using for my scripts:</p>
<p>GOTO Exit</p>
<p>:ResultCode<br />EXIT /B %1</p>
<p>:Exit<br />ENDLOCAL &#038; CALL :ResultCode %ERRORLEVEL%</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: מתנפחים</title>
		<link>http://code-bear.com/bearlog/2007/06/01/getting-the-exit-code-from-a-batch-file-that-is-run-from-a-python-program/comment-page-1/#comment-41</link>
		<dc:creator>מתנפחים</dc:creator>
		<pubDate>Sun, 21 Dec 2008 23:33:33 +0000</pubDate>
		<guid isPermaLink="false">http://code-bear.com/bearlog/2007/06/01/getting-the-exit-code-from-a-batch-file-that-is-run-from-a-python-program/#comment-41</guid>
		<description>Thank you man!</description>
		<content:encoded><![CDATA[<p>Thank you man!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bear</title>
		<link>http://code-bear.com/bearlog/2007/06/01/getting-the-exit-code-from-a-batch-file-that-is-run-from-a-python-program/comment-page-1/#comment-32</link>
		<dc:creator>bear</dc:creator>
		<pubDate>Tue, 20 May 2008 10:23:03 +0000</pubDate>
		<guid isPermaLink="false">http://code-bear.com/bearlog/2007/06/01/getting-the-exit-code-from-a-batch-file-that-is-run-from-a-python-program/#comment-32</guid>
		<description>Glad to help!  With the amount of time our team took in figuring this one out there was no way I wasn&#039;t going to share it :)</description>
		<content:encoded><![CDATA[<p>Glad to help!  With the amount of time our team took in figuring this one out there was no way I wasn&#39;t going to share it :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven Knight</title>
		<link>http://code-bear.com/bearlog/2007/06/01/getting-the-exit-code-from-a-batch-file-that-is-run-from-a-python-program/comment-page-1/#comment-31</link>
		<dc:creator>Steven Knight</dc:creator>
		<pubDate>Sat, 17 May 2008 01:55:15 +0000</pubDate>
		<guid isPermaLink="false">http://code-bear.com/bearlog/2007/06/01/getting-the-exit-code-from-a-batch-file-that-is-run-from-a-python-program/#comment-31</guid>
		<description>Excellent!  Many, many thanks for figuring out this technique.  Your post definitely did save me a huge amount of time and effort trying to figure out how to do this.</description>
		<content:encoded><![CDATA[<p>Excellent!  Many, many thanks for figuring out this technique.  Your post definitely did save me a huge amount of time and effort trying to figure out how to do this.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
