Re: Command line

"Luke Dunstan" <[email protected]>
Newsgroups gmane.comp.python.windows-ce
Message-ID <[email protected]>
It should work with spaces if you quote it properly (this is true of any operating system), e.g.

python "\my documents\python\test.py"

Luke

  ----- Original Message ----- 
  From: ahmad adel rldardiry 
  To: Luke Dunstan 
  Sent: Thursday, June 29, 2006 1:48 AM
  Subject: Re: [PythonCE] Command line



  السلام عليكم ورحمة الله وبركاته
  May peace and Allah Mercy and Blessings be upon you,


  Thanks a lot Luke.

  After some tests, it worked fine, also with the "/nopcceshell" flag (very cool).

  It seems that python does not accept paths with spaces though:
  python.exe \Program Files\ ...


  So now, if I wanted to distribute pythonce with a software I made (for using as command line) what license should I include or even do I have the right to?


  Thanks again.



  لا إله إلا الله
  There is no god but Allah


  أحمد
  Ahmad
  http://www.shagarah.com
  http://www.newhive.com
    ----- Original Message ----- 
    From: Luke Dunstan 
    To: [email protected] 
    Sent: Wednesday, June 28, 2006 4:36 PM
    Subject: Re: [PythonCE] Command line



    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: [email protected] 
        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: [email protected] 
          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
          [email protected]
          http://mail.python.org/mailman/listinfo/pythonce



------------------------------------------------------------------------


        _______________________________________________
        PythonCE mailing list
        [email protected]
        http://mail.python.org/mailman/listinfo/pythonce



----------------------------------------------------------------------------


    _______________________________________________
    PythonCE mailing list
    [email protected]
    http://mail.python.org/mailman/listinfo/pythonce

_______________________________________________
PythonCE mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pythonce
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.