<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1256">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Hi,</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>You will need to pass the script name as an absolute
path. See also: <A
href="http://pythonce.sourceforge.net/Wikka/UsingPythonCE">http://pythonce.sourceforge.net/Wikka/UsingPythonCE</A></FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Luke</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=ahmad@newhive.com href="mailto:ahmad@newhive.com">ahmad adel
rldardiry</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=coder_infidel@hotmail.com
href="mailto:coder_infidel@hotmail.com">Luke Dunstan</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, June 28, 2006 8:09
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [PythonCE] Command
line</DIV>
<DIV><BR></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>السلام عليكم ورحمة الله وبركاته<BR>May peace and
Allah Mercy and Blessings be upon you,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Thanks for replying, I thought nobody
will!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Yes I have tested it in the CMD (<A
href="http://www.symbolictools.de">www.symbolictools.de</A>)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>like this:</FONT></DIV>
<DIV><FONT face=Arial size=2>cd program files\python24\</FONT></DIV>
<DIV><FONT face=Arial size=2>start python.exe t.py</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>in t.py:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>f=file('pp.txt','w')</FONT></DIV>
<DIV><FONT face=Arial size=2>f.write('Besmellah')</FONT></DIV>
<DIV><FONT face=Arial size=2>f.close()</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>it gaves this error:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Traceback (innermost last):</FONT></DIV>
<DIV><FONT face=Arial size=2><NULL>: <NULL></FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Also I want to be able to hide the file (hidden startup) is
this possible?</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Thanks</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV><FONT face=Arial size=2>
<DIV><FONT face="Traditional Arabic"></FONT><FONT
face="Traditional Arabic"></FONT><BR>لا إله إلا الله<BR>There is no god but
Allah</DIV>
<DIV> </DIV>
<DIV><BR>أحمد<BR>Ahmad<BR><A
href="http://www.shagarah.com">http://www.shagarah.com</A><BR><A
href="http://www.newhive.com">http://www.newhive.com</A></FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=coder_infidel@hotmail.com
href="mailto:coder_infidel@hotmail.com">Luke Dunstan</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=pythonce@python.org
href="mailto:pythonce@python.org">pythonce@python.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, June 28, 2006 2:51
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [PythonCE] Command
line</DIV>
<DIV><BR></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Hi,</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Yes, you can run Python scripts by passing them on the
command line to python.exe. This is what happens when you double-click a
script. Are you having trouble in some way?</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Luke</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=ahmad@newhive.com href="mailto:ahmad@newhive.com">ahmad adel
rldardiry</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=PythonCE@python.org
href="mailto:PythonCE@python.org">PythonCE@python.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Sunday, June 25, 2006 7:00
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [PythonCE] Command
line</DIV>
<DIV><BR></DIV>
<DIV><FONT size=2>السلام عليكم ورحمة الله وبركاته<BR>May peace and Allah
Mercy and Blessings be upon you,</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Can I execute a .py as a commandline parameter to
pythonce, giving that python is installed on the device?</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>eg.</FONT></DIV>
<DIV><FONT size=2>start python.exe t.py (-hidden?)</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Thanks</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV><FONT size=2>
<DIV><BR>لا إله إلا الله<BR>There is no god but Allah</DIV>
<DIV> </DIV>
<DIV><BR>أحمد<BR>Ahmad<BR><A
href="http://www.shagarah.com">http://www.shagarah.com</A><BR><A
href="http://www.newhive.com">http://www.newhive.com</A></FONT></DIV>
<P></P><FONT size=2></FONT><FONT size=2></FONT>
<HR>
<P></P>_______________________________________________<BR>PythonCE mailing
list<BR>PythonCE@python.org<BR>http://mail.python.org/mailman/listinfo/pythonce<BR></BLOCKQUOTE>
<P>
<HR>
<P></P>_______________________________________________<BR>PythonCE mailing
list<BR>PythonCE@python.org<BR>http://mail.python.org/mailman/listinfo/pythonce<BR></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>