<?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>The adventures of Foo &#187; cmd</title>
	<atom:link href="http://jensge.org/tag/cmd/feed/" rel="self" type="application/rss+xml" />
	<link>http://jensge.org</link>
	<description>My aggregated random tech blabber</description>
	<lastBuildDate>Sat, 04 Feb 2012 19:12:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Learning something new every day&#8230;.</title>
		<link>http://jensge.org/2008/07/learning-something-new-every-day/</link>
		<comments>http://jensge.org/2008/07/learning-something-new-every-day/#comments</comments>
		<pubDate>Mon, 21 Jul 2008 11:30:38 +0000</pubDate>
		<dc:creator>Jens</dc:creator>
				<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[cmd]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://jensge.org/?p=86</guid>
		<description><![CDATA[Just in case someone wonders what %~d0 in a .bat or .cmd file means, here&#8217;s the excerpt from help call: [...] In addition, expansion of batch script argument references (%0, %1, etc.) have been changed as follows: %* in a &#8230; <a href="http://jensge.org/2008/07/learning-something-new-every-day/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Just in case someone wonders what <code>%~d0</code> in a .bat or .cmd file means, here&#8217;s the excerpt from <code>help call</code>:</p>
<p>[...]</p>
<blockquote><p>In addition, expansion of batch script argument references (%0, %1, etc.) have been changed as follows:</p>
<p>%* in a batch script refers to all the arguments (e.g. %1 %2 %3 %4 %5 &#8230;)</p>
<p>Substitution of batch parameters (%n) has been enhanced.Â  You can<br />
now use the following optional syntax:</p>
<p style="padding-left: 30px;">%~1Â Â Â Â Â Â Â Â  &#8211; expands %1 removing any surrounding quotes (&#8220;)<br />
%~f1Â Â Â Â Â Â Â  &#8211; expands %1 to a fully qualified path name<br />
%~d1Â Â Â Â Â Â Â  &#8211; expands %1 to a drive letter only<br />
%~p1Â Â Â Â Â Â Â  &#8211; expands %1 to a path only<br />
%~n1Â Â Â Â Â Â Â  &#8211; expands %1 to a file name only<br />
%~x1Â Â Â Â Â Â Â  &#8211; expands %1 to a file extension only<br />
%~s1Â Â Â Â Â Â Â  &#8211; expanded path contains short names only<br />
%~a1Â Â Â Â Â Â Â  &#8211; expands %1 to file attributes<br />
%~t1Â Â Â Â Â Â Â  &#8211; expands %1 to date/time of file<br />
%~z1Â Â Â Â Â Â Â  &#8211; expands %1 to size of file<br />
%~$PATH:1Â Â  &#8211; searches the directories listed in the PATH<br />
environment variable and expands %1 to the fully<br />
qualified name of the first one found.Â  If the<br />
environment variable name is not defined or the<br />
file is not found by the search, then this<br />
modifier expands to the empty string</p>
<p>The modifiers can be combined to get compound results:
</p>
<p style="padding-left: 30px;">%~dp1Â Â Â Â Â Â  &#8211; expands %1 to a drive letter and path only<br />
%~nx1Â Â Â Â Â Â  &#8211; expands %1 to a file name and extension only<br />
%~dp$PATH:1 &#8211; searches the directories listed in the PATH<br />
environment variable for %1 and expands to the<br />
qualified name of the first one found.Â  If the<br />
environment variable name is not defined or the<br />
file is not found by the search, then this<br />
modifier expands to the empty string</p>
<p>The modifiers can be combined to get compound results:
</p>
<p style="padding-left: 30px;">%~dp1Â Â Â Â Â Â  &#8211; expands %1 to a drive letter and path only<br />
%~nx1Â Â Â Â Â Â  &#8211; expands %1 to a file name and extension only<br />
%~dp$PATH:1 &#8211; searches the directories listed in the PATH<br />
environment variable for %1 and expands to the<br />
drive letter and path of the first one found.<br />
%~ftza1Â Â Â Â  &#8211; expands %1 to a DIR like output line</p>
<p>In the above examples %1 and PATH can be replaced by other<br />
valid values.Â  The %~ syntax is terminated by a valid argument<br />
number.Â  The %~ modifiers may not be used with %*</p>
</blockquote>
<p>I bet the guy meant %~dp0 in the call to cacls</p>
]]></content:encoded>
			<wfw:commentRss>http://jensge.org/2008/07/learning-something-new-every-day/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

