[PythonCE] Command line
Luke Dunstan
coder_infidel at hotmail.com
Wed Jun 28 15:36:40 CEST 2006
Hi,
You will need to pass the script name as an absolute path. See also: http://pythonce.sourceforge.net/Wikka/UsingPythonCE
Luke
----- Original Message -----
From: ahmad adel rldardiry
To: Luke Dunstan
Sent: Wednesday, June 28, 2006 8:09 PM
Subject: Re: [PythonCE] Command line
السلام عليكم ورحمة الله وبركاته
May peace and Allah Mercy and Blessings be upon you,
Thanks for replying, I thought nobody will!
Yes I have tested it in the CMD (www.symbolictools.de)
like this:
cd program files\python24\
start python.exe t.py
in t.py:
f=file('pp.txt','w')
f.write('Besmellah')
f.close()
it gaves this error:
Traceback (innermost last):
<NULL>: <NULL>
Also I want to be able to hide the file (hidden startup) is this possible?
Thanks
لا إله إلا الله
There is no god but Allah
أحمد
Ahmad
http://www.shagarah.com
http://www.newhive.com
----- Original Message -----
From: Luke Dunstan
To: pythonce at python.org
Sent: Wednesday, June 28, 2006 2:51 PM
Subject: Re: [PythonCE] Command line
Hi,
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?
Luke
----- Original Message -----
From: ahmad adel rldardiry
To: PythonCE at python.org
Sent: Sunday, June 25, 2006 7:00 PM
Subject: [PythonCE] Command line
السلام عليكم ورحمة الله وبركاته
May peace and Allah Mercy and Blessings be upon you,
Can I execute a .py as a commandline parameter to pythonce, giving that python is installed on the device?
eg.
start python.exe t.py (-hidden?)
Thanks
لا إله إلا الله
There is no god but Allah
أحمد
Ahmad
http://www.shagarah.com
http://www.newhive.com
--------------------------------------------------------------------------
_______________________________________________
PythonCE mailing list
PythonCE at python.org
http://mail.python.org/mailman/listinfo/pythonce
----------------------------------------------------------------------------
_______________________________________________
PythonCE mailing list
PythonCE at python.org
http://mail.python.org/mailman/listinfo/pythonce
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythonce/attachments/20060628/0689c318/attachment.html
More information about the PythonCE
mailing list