Using command line args on Windows

Michael.Coll-Barth at VerizonWireless.com Michael.Coll-Barth at VerizonWireless.com
Wed Oct 5 16:51:59 EDT 2005


I'll assume that you are not familiar with Windows, so forgive me if you
know this.

1) Go to a command prompt.  

The location of this depends on which OS you are running.  But, you can go
to Start / Run... and type in cmd or command.  This will give you a window
with a 'DOS' prompt.

2) Type path=path;c:\python24\ 
c:\python24\ is where I have python installed.  I won't get into how to make
this permanent.

3) type python and you have the command line shell you know and love.


If this does not work for you, let me know.

Michael



-----Original Message-----
From:
python-list-bounces+michael.coll-barth=verizonwireless.com at python.org
[mailto:python-list-bounces+michael.coll-barth=verizonwireless.com at pytho
n.org]On Behalf Of k8
Sent: Wednesday, October 05, 2005 4:39 PM
To: python-list at python.org
Subject: Using command line args on Windows


Hello-

I'm stuck on a Windows machine today and would love to fully play with
and test a simple python script.  I want to be able to type "python
myscript myarg" somewhere.  Is there anything out there to help me?  My
main concern is playing with the myarg in the sys.argv list.  I've been
mucking around with IDLE without much success.


___________________________________________________________________
The information contained in this message and any attachment may be
proprietary, confidential, and privileged or subject to the work
product doctrine and thus protected from disclosure.  If the reader
of this message is not the intended recipient, or an employee or
agent responsible for delivering this message to the intended
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify me
immediately by replying to this message and deleting it and all
copies and backups thereof.  Thank you.




More information about the Python-list mailing list