<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.7.3" -->
<rss version="2.0">
	<channel>
		<title>Batch File %ProgramFiles(x86)% Parenthesis Anomaly</title>
		<description>Comments for Batch File %ProgramFiles(x86)% Parenthesis Anomaly at http://marsbox.com , comment 1 to 5 out of 5 comments</description>
		<link>http://marsbox.com</link>
		<lastBuildDate>Sun, 26 May 2013 03:40:57 +0100</lastBuildDate>
        <generator>FeedCreator 1.7.3</generator>
		<item>
			<title>...</title>
			<link>http://marsbox.com/blog/howtos/batch-file-programfiles-x86-parenthesis-anomaly/#comment-387</link>
			<description>With some add double quotes, your original code is fine:

if &quot;&amp;#xPr;ogramFiles(x86)%&quot;==&quot;&quot; (
echo 32-bit
set &quot;ProgRoot=&amp;#xPr;ogramFiles%&quot;
) else (
set &quot;ProgRoot=&amp;#xPr;ogramFiles(x86)%&quot;
echo 64-bit
)
echo &amp;#xPr;ogRoot% - TT</description>
			<pubDate>Thu, 29 Nov 2012 13:09:16 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://marsbox.com/blog/howtos/batch-file-programfiles-x86-parenthesis-anomaly/#comment-375</link>
			<description>If command extensions are enabled, you can try this:

Set ProgramsFolder=&amp;#xPr;ogramFiles%
If Defined ProgramFiles(x86) Set ProgramsFolder=&amp;#xPr;ogramFiles(x86)%
Echo Programs folder is &quot;&amp;#xPr;ogramsFolder%&quot;. - Mumbler!</description>
			<pubDate>Thu, 10 May 2012 07:25:49 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://marsbox.com/blog/howtos/batch-file-programfiles-x86-parenthesis-anomaly/#comment-367</link>
			<description>simply change 'set ...=...' to 'set &quot;...=...&quot;'.
E.g.:

if &quot;&amp;#xPr;ogramFiles(x86)&amp;#xXX;X&quot;==&quot;XXX&quot; (
echo 32-bit
set &quot;ProgRoot=&amp;#xPr;ogramFiles%&quot;
) else (
set &quot;ProgRoot=&amp;#xPr;ogramFiles(x86)%&quot;
echo 64-bit
)
echo &amp;#xPr;ogRoot%

thats it... - ...</description>
			<pubDate>Wed, 28 Sep 2011 23:10:43 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://marsbox.com/blog/howtos/batch-file-programfiles-x86-parenthesis-anomaly/#comment-313</link>
			<description>You forgot the carets:

ProgramFiles^(x86^)

Otherwise, the closing ) gets interpreted as closing the list of commands. - Fred</description>
			<pubDate>Thu, 23 Sep 2010 19:10:23 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://marsbox.com/blog/howtos/batch-file-programfiles-x86-parenthesis-anomaly/#comment-185</link>
			<description>Yeah I forget exactly why, but I couldn't use the brackets either. Maybe something to do with quotes. - Grant Brown</description>
			<pubDate>Wed, 16 Sep 2009 13:37:57 +0100</pubDate>
		</item>
	</channel>
</rss>
