Newbie using Python
Steve Holden
sholden at holdenweb.com
Thu Aug 15 06:23:37 EDT 2002
"Mark Welborn" <markw at electromotor.com> wrote in message
news:mailman.1029391950.1665.python-list at python.org...
> Hello everyone,
>
> I have installed Python on my Windows machine and trying to learn the
> language. I could also use a better understanding of programming
techniques
> in general. Anyway....from the reviews that I've read it looks like Python
> should be a good programming language to learn. I hope that my question
is
> not too simple. :-)
>
> How does a person get Python to make a system call under Windows ? I have
> tried 'import os' and 'import sys', but I must not understand the fine
> points of making this work in a Python script. Do I use the Windows
> commands as in MS-DOS prompt or do I need a Python module using Python
> commands ?
>
Try
import os
os.system("notepad.exe")
and take it from there.
regards
-----------------------------------------------------------------------
Steve Holden http://www.holdenweb.com/
Python Web Programming http://pydish.holdenweb.com/pwp/
-----------------------------------------------------------------------
More information about the Python-list
mailing list