<?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/"
		>
<channel>
	<title>Comments on: Windows tricks for erlangers</title>
	<atom:link href="http://ulf.wiger.net/weblog/2008/12/27/windows-tricks-for-erlangers/feed/" rel="self" type="application/rss+xml" />
	<link>http://ulf.wiger.net/weblog/2008/12/27/windows-tricks-for-erlangers/</link>
	<description>Feuerworks Inc - @uwiger - ulf (at) feuerworks.com</description>
	<lastBuildDate>Sat, 05 Nov 2011 10:32:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Ionut G. Stan</title>
		<link>http://ulf.wiger.net/weblog/2008/12/27/windows-tricks-for-erlangers/comment-page-1/#comment-10478</link>
		<dc:creator>Ionut G. Stan</dc:creator>
		<pubDate>Mon, 26 Jan 2009 09:27:10 +0000</pubDate>
		<guid isPermaLink="false">http://ulf.wiger.net/weblog/?p=78#comment-10478</guid>
		<description>I&#039;m not an Erlanger yet, I plan though to learn it, but I can share the way I execute something in a certain directory. I&#039;m using Total Commander which has a command line at the bottom. Simply enter cmd right there, press enter and then you may execute any program you wish. Well, it must be on the PATH though.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not an Erlanger yet, I plan though to learn it, but I can share the way I execute something in a certain directory. I&#8217;m using Total Commander which has a command line at the bottom. Simply enter cmd right there, press enter and then you may execute any program you wish. Well, it must be on the PATH though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ulf Wiger</title>
		<link>http://ulf.wiger.net/weblog/2008/12/27/windows-tricks-for-erlangers/comment-page-1/#comment-10117</link>
		<dc:creator>Ulf Wiger</dc:creator>
		<pubDate>Thu, 01 Jan 2009 17:26:38 +0000</pubDate>
		<guid isPermaLink="false">http://ulf.wiger.net/weblog/?p=78#comment-10117</guid>
		<description>@Barry: well, that would explain it. (: 
When calling cmd from the registry, the command and arguments are given separately, so I don&#039;t think double quoting will interfere with the %1, but I&#039;ll give it a try when I get back to my own machine.</description>
		<content:encoded><![CDATA[<p>@Barry: well, that would explain it. (:<br />
When calling cmd from the registry, the command and arguments are given separately, so I don&#8217;t think double quoting will interfere with the %1, but I&#8217;ll give it a try when I get back to my own machine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Barry Kelly</title>
		<link>http://ulf.wiger.net/weblog/2008/12/27/windows-tricks-for-erlangers/comment-page-1/#comment-10116</link>
		<dc:creator>Barry Kelly</dc:creator>
		<pubDate>Thu, 01 Jan 2009 17:09:30 +0000</pubDate>
		<guid isPermaLink="false">http://ulf.wiger.net/weblog/?p=78#comment-10116</guid>
		<description>Cmd&#039;s quoting rules, like Windows&#039; quoting rules, are odd and seemingly ill-defined. The quotes can nest almost magically, though.

Consider an application called &#039;test me.exe&#039; in the current directory which prints out the number of command-line arguments (aside from the executable name). The following runs are possible:

cmd /k &quot;test me&quot;

Runs &quot;test me&quot;, and prints 0.

cmd /k &quot;&quot;test me&quot; foo bar&quot;

Runs &quot;test me&quot;, and prints 2.

cmd /k &quot;&quot;test me&quot; &quot;foo bar&quot;&quot;

Runs &quot;test me&quot;, and prints 1.

This behaviour is the same whether or not cmd /k is invoked from the command line, or from e.g. a shortcut. For example, the last example above, as a command line, looks like the following on my system:

%windir%\system32\cmd.exe /k &quot;&quot;c:\cygwin\home\barrkel\test me.exe&quot; &quot;foo bar&quot;&quot;

The extra level of quoting makes it problematic for expanding argument lists like %*, though, so you&#039;d need to build it up out of shift etc. when writing a batch file.</description>
		<content:encoded><![CDATA[<p>Cmd&#8217;s quoting rules, like Windows&#8217; quoting rules, are odd and seemingly ill-defined. The quotes can nest almost magically, though.</p>
<p>Consider an application called &#8216;test me.exe&#8217; in the current directory which prints out the number of command-line arguments (aside from the executable name). The following runs are possible:</p>
<p>cmd /k &#8220;test me&#8221;</p>
<p>Runs &#8220;test me&#8221;, and prints 0.</p>
<p>cmd /k &#8220;&#8221;test me&#8221; foo bar&#8221;</p>
<p>Runs &#8220;test me&#8221;, and prints 2.</p>
<p>cmd /k &#8220;&#8221;test me&#8221; &#8220;foo bar&#8221;"</p>
<p>Runs &#8220;test me&#8221;, and prints 1.</p>
<p>This behaviour is the same whether or not cmd /k is invoked from the command line, or from e.g. a shortcut. For example, the last example above, as a command line, looks like the following on my system:</p>
<p>%windir%\system32\cmd.exe /k &#8220;&#8221;c:\cygwin\home\barrkel\test me.exe&#8221; &#8220;foo bar&#8221;"</p>
<p>The extra level of quoting makes it problematic for expanding argument lists like %*, though, so you&#8217;d need to build it up out of shift etc. when writing a batch file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Virding</title>
		<link>http://ulf.wiger.net/weblog/2008/12/27/windows-tricks-for-erlangers/comment-page-1/#comment-10025</link>
		<dc:creator>Robert Virding</dc:creator>
		<pubDate>Sat, 27 Dec 2008 20:51:11 +0000</pubDate>
		<guid isPermaLink="false">http://ulf.wiger.net/weblog/?p=78#comment-10025</guid>
		<description>I use the following small batch file which I liberally sprinkle in the directories where I work. I can just click on these to start an erlang in the current directory. Setting ERL_LIBS means that erlang will find my own and imported libraries which are not part of the distribution.

@echo off

rem Use my git directories as libraries
set ERL_LIBS=C:/msys/1.0/home/GameStudio/erlang

start &quot;Erlang&quot; &quot;C:\Program Files\erl5.6.5\bin\werl.exe&quot;
exit</description>
		<content:encoded><![CDATA[<p>I use the following small batch file which I liberally sprinkle in the directories where I work. I can just click on these to start an erlang in the current directory. Setting ERL_LIBS means that erlang will find my own and imported libraries which are not part of the distribution.</p>
<p>@echo off</p>
<p>rem Use my git directories as libraries<br />
set ERL_LIBS=C:/msys/1.0/home/GameStudio/erlang</p>
<p>start &#8220;Erlang&#8221; &#8220;C:\Program Files\erl5.6.5\bin\werl.exe&#8221;<br />
exit</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ulf Wiger</title>
		<link>http://ulf.wiger.net/weblog/2008/12/27/windows-tricks-for-erlangers/comment-page-1/#comment-10021</link>
		<dc:creator>Ulf Wiger</dc:creator>
		<pubDate>Sat, 27 Dec 2008 13:19:07 +0000</pubDate>
		<guid isPermaLink="false">http://ulf.wiger.net/weblog/?p=78#comment-10021</guid>
		<description>Thanks. Yes, I did try &#039;cmd /K&#039;, but apparently, cmd.exe doesn&#039;t like spaces in the following command, even if it&#039;s enclosed within double quotes. I had an alternative path without spaces, but apparently, it doesn&#039;t like symlinks either... :)</description>
		<content:encoded><![CDATA[<p>Thanks. Yes, I did try &#8216;cmd /K&#8217;, but apparently, cmd.exe doesn&#8217;t like spaces in the following command, even if it&#8217;s enclosed within double quotes. I had an alternative path without spaces, but apparently, it doesn&#8217;t like symlinks either&#8230; <img src='http://ulf.wiger.net/weblog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Barry Kelly</title>
		<link>http://ulf.wiger.net/weblog/2008/12/27/windows-tricks-for-erlangers/comment-page-1/#comment-10020</link>
		<dc:creator>Barry Kelly</dc:creator>
		<pubDate>Sat, 27 Dec 2008 13:06:01 +0000</pubDate>
		<guid isPermaLink="false">http://ulf.wiger.net/weblog/?p=78#comment-10020</guid>
		<description>For command-line shells, consider using the prefix &#039;cmd /k&#039;, followed by the rest of your erlc command. Cmd is the command shell; /k makes it run the following arguments as a command but *not* exit the shell.

Alternatively, write a batch file that looks like:

@echo off
\erlc %*
pause

And pass it all the arguments for erlc. It will pause with &quot;Press any key to continue...&quot; before dismissing the window.</description>
		<content:encoded><![CDATA[<p>For command-line shells, consider using the prefix &#8216;cmd /k&#8217;, followed by the rest of your erlc command. Cmd is the command shell; /k makes it run the following arguments as a command but *not* exit the shell.</p>
<p>Alternatively, write a batch file that looks like:</p>
<p>@echo off<br />
\erlc %*<br />
pause</p>
<p>And pass it all the arguments for erlc. It will pause with &#8220;Press any key to continue&#8230;&#8221; before dismissing the window.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

