<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Rants of a mobile dev &#187; windows</title>
	<atom:link href="http://blog.smartcube.co.za/tag/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.smartcube.co.za</link>
	<description>Mobile developer ranting about mobile stuff</description>
	<lastBuildDate>Sun, 02 May 2010 20:58:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Batch Set Var From Application Output</title>
		<link>http://blog.smartcube.co.za/2008/12/11/batch-var-application-output/</link>
		<comments>http://blog.smartcube.co.za/2008/12/11/batch-var-application-output/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 11:53:28 +0000</pubDate>
		<dc:creator>drubin</dc:creator>
				<category><![CDATA[Programing]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blog.smartcube.co.za/?p=44</guid>
		<description><![CDATA[I have been looking for this line of code for a while. I needed to set a var in a batch script to be the output from an application. FOR /F "tokens=*" %%R IN ('PROGRAM.EXE /SWITCH') DO SET VAR=%%R My first attempt was something like this application > ~tmpFile set /p var= < ~tmpFile del [...]]]></description>
			<content:encoded><![CDATA[<p>I have been looking for this line of code for a while. I needed to set a var in a batch script to be the output from an application.</p>
<blockquote><p><code>FOR /F "tokens=*" %%R IN ('PROGRAM.EXE /SWITCH') DO SET VAR=%%R</code>
</p></blockquote>
<p>My first attempt was something like this </p>
<blockquote><p><code>application > ~tmpFile<br />
set /p var= < ~tmpFile<br />
del ~tmpFile<br />
</code></p></blockquote>
<p>This post is a prequel to simple mysql backup script for windows.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.smartcube.co.za/2008/12/11/batch-var-application-output/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
