Ok, if any one ever needs to find the MiKTeX binary path to start with, for scripting needs or like, under Windows this will do it.<div><br></div><div>(If you are using portable, make sure that you start TeXWorks from the MiKTeX portable  menu, or the MiKTeX portable command prompt.)</div>
<div><br></div><div>Any one on Linux please advise - will this work as is (assuming realtive path exists)?</div><div><br></div><div>Does MiKTeX set the same environment variable and can it be used in the following way please?</div>
<div><br></div><div>        <font class="Apple-style-span" color="#3333FF">echo %MIKTEX_BINDIR% &gt; texworks-help/framestHelp/MiKTeXPath.txt</font></div><div><br></div><div>Paul</div><div><div>--[[TeXworksScript</div><div>
Title: Drop MikTex Path</div><div>Description: Puts Date Time in</div><div>Author: Paul A Norman From gleanings in lUa chm help Lua 5.1 Reference Manual, wiki, and tutorials</div><div>Version: 0.1</div><div>Date: 2009-10-18</div>
<div>Script-Type: standalone</div><div>]]</div><div>     os.execute(&quot;echo %MIKTEX_BINDIR% &gt; texworks-help/framestHelp/MiKTeXPath.txt&quot;)</div><div><br></div><div><br></div><br><div class="gmail_quote">2009/10/16 Paul A Norman <span dir="ltr">&lt;<a href="mailto:paul.a.norman@gmail.com">paul.a.norman@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Thanks, I was thinking of such blockages when I said - it might be a &quot;no goer&quot;.<div><br><div>Is it then possible when the help call procedure looks for the index.html for an agreed parameter string to be passed as a search querry, perhaps including that path, any selected text in the TWeditor and other things that seem useful?  </div>

<div><br></div><div>(I realize that this depends on the exact way in which TW is invoking the index.html files it is expecting to find.)</div><div><br></div><div>e.g.</div><div><br></div><div>index.html?MiTex=blah/blah/xblah&amp;slected=\para</div>

<div><br></div><div>This could gracefully be ignored by index.html files that are not expecting it and be utilized by others for whom it is useful.</div><div><br></div><div>Paul<br><br><div class="gmail_quote">2009/10/16 T T <span dir="ltr">&lt;<a href="mailto:t34www@googlemail.com" target="_blank">t34www@googlemail.com</a>&gt;</span><div>
<div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2009/10/15 Paul A Norman &lt;<a href="mailto:paul.a.norman@gmail.com" target="_blank">paul.a.norman@gmail.com</a>&gt;:<br>

<div>&gt; Would it please be possible to requeest that on startup, TeXWorks could make<br>
&gt; a file in its binary directory that would contain just the local path to the<br>
&gt; MiTeX installation, perhaps called mitex.txt<br>
<br>
</div>TW dir might be non-writable in some setups (DVD, network shares).<br>
<br>
Cheers,<br>
<br>
Tomek<br>
</blockquote></div></div></div><br></div></div>
</blockquote></div><br></div>