<br><p>Hi Will,<br></p><p>I have tried typesetting the example you provided (changing &#39;ls&#39; to &#39;dir&#39; so I could test it both using windows command prompt and Cygwin shell) using the following command:</p><p>
pdflatex -shell-escape &lt;file&gt;</p><p>Both in windows command prompt and in cygwin shell, I saw the output of the &#39;dir&#39; command.</p><p>Does this help narrowing down the problem?</p><p>- Iwan</p><div class="gmail_quote">
On Wed, Nov 26, 2008 at 1:42 PM, Will Robertson <span dir="ltr">&lt;<a href="mailto:wspr81@gmail.com">wspr81@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="Ih2E3d">On 26/11/2008, at 3:54 PM, Iwan Setyawan wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
OK, I&#39;ll try it &nbsp;later today when i&#39;m in front of my windows box. I take it that &#39;ls&#39; is the *nix command &#39;ls&#39;? Should I try this only under Cygwin then?<br>
<br>
</blockquote></div>
If you&#39;re using Windows without Cygwin, try &#39;dir&#39; instead, I suppose. It&#39;s just to see if the shell-escape is actually working -- it doesn&#39;t matter what command it is.<div class="Ih2E3d"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Regarding the 2nd line of the original example (i.e, NOTUSING WINDOWS): as I said in my original post, I also get NOTUSING WINDOWS when I typeset the example from both TeXworks *and* windows command prompt. In these cases, shouldn&#39;t the output say USING WINDOWS?<br>

<br>
</blockquote>
<br>
<br></div>
You could consider this a bug of the ifplatform package, I suppose. It detects the platform by analysing the side-effects of the shell; if you&#39;re using Cygwin, then the shell behaves like a *NIX shell.<br><font color="#888888">
<br>
Will<br>
<br>
<br>
</font></blockquote></div><br>