[Tutor] Interacting with Windows NT commads

alan.gauld@bt.com alan.gauld@bt.com
Mon, 24 Jan 2000 12:58:31 -0000


> I've been working through Learning Python and am looking to 
> start putting 
> some of it into practice.  I would like to start off by 
> simplifying some 
> repetitive NT Admin tasks.  In particular I want to interact with NT 
> command line commands.  How do I call NT commands through Python?

2 ways:

1) use the system() call from python

2) use the python enbgine for Windows Script Host which creates an
object model for doing these things(including a Run() method

The latter allows you to use any of:
VBscript, Jscript, Perl or Python...

Alan G.

PS, Anyone know where do we get the python engine? - MS say it exists 
but I can't find it...