<p>Thanks walter.</p>
<p>Ill have a go and report back.</p>
<p>Thanks</p>
<p>Dave</p>
<div class="gmail_quote">On Feb 5, 2012 4:35 PM, &quot;Walter Prins&quot; &lt;<a href="mailto:wprins@gmail.com">wprins@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello Dave,<br>
<br>
On 5 February 2012 15:26, Dave Hanson &lt;<a href="mailto:dave@hansonforensics.co.uk">dave@hansonforensics.co.uk</a>&gt; wrote:<br>
&gt; I can force a dos window to open by using a bat or python program.<br>
<br>
OK, so the command prompt issue is really a red herring then from what<br>
I can tell.  Work around the standard limitations of your desktop in<br>
whatever way suits you (providing you&#39;re not going to get yourself<br>
into trouble by doing so etc).  As long as you can get to a command<br>
prompt you can then set up the program to work the same way as on<br>
Unix, with a bit of jiggery pokery.<br>
<br>
&gt; What I&#39;m<br>
&gt; trying to get around is not being able to interact with the program using<br>
&gt; [options] like -l for list for example.<br>
<br>
OK, so your real issue involved command line arguments it seems.  What<br>
I&#39;d do is write a wrapper batch file for your Python program named<br>
&quot;t.bat&quot;, and place it in a location that&#39;s on your search path, or add<br>
it to the search path if you like (perhaps put it alongside t.py and<br>
then put that location on the system PATH.)<br>
<br>
t.bat should contain something like this (adjust paths as required obviously):<br>
<br>
c:\Python27\python.exe c:\src\t\t.py %1 %2 %3 %4 %5 %6 %7 %8 %9<br>
<br>
This command line will obviously pass the first 9 command line<br>
argument strings given to the batch file on to the Python program.<br>
<br>
What this does is to allow you to run the command like you do on Unix, e.g:<br>
<br>
t -f 5<br>
<br>
... which in turn should will find and run t.bat with the command line<br>
arguments &quot;-5 5&quot; which then pass them on to the Python program etc.<br>
<br>
HTH,<br>
<br>
Walter<br>
_______________________________________________<br>
Tutor maillist  -  <a href="mailto:Tutor@python.org">Tutor@python.org</a><br>
To unsubscribe or change subscription options:<br>
<a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
</blockquote></div>