os.startfile()

Chris Gonnerman chris.gonnerman at newcenturycomputers.net
Thu Jan 17 22:34:21 EST 2002


If you are a beginner, try os.system("command goes here")

If you want "asynchronous" execution, try it like this:

    os.system("start my-command")

Good luck.

----- Original Message -----
From: "Maximilian Scherr" <MaximilianScherr at t-online.de>
To: "Chris Gonnerman" <chris.gonnerman at newcenturycomputers.net>
Sent: Thursday, January 17, 2002 8:10 AM
Subject: Re: os.startfile()


> hmm,
>
> in the module reference os.startfile didn't have args.
> like you can see, im very new to python.
>
> im starting a program with it, i could also use exec* but it all stopped
my
> script. or perhaps i need to use something else, but i don't know what,
> sorry.
>
> ----- Original Message -----
> From: "Chris Gonnerman" <chris.gonnerman at newcenturycomputers.net>
> To: "maximilianscherr" <MaximilianScherr at T-Online.de>
> Cc: <python-list at python.org>
> Sent: Thursday, January 17, 2002 3:01 PM
> Subject: Re: os.startfile()
>
>
> > Hmm.  Could you maybe include a runable example?  Like, with arguments
> > listed?  Hopefully you aren't calling os.startfile() with no args as the
> > example implies.  What kind of file are you starting?
> >
> > ----- Original Message -----
> > From: "maximilianscherr" <MaximilianScherr at T-Online.de>
> >
> >
> > > sorry, i'm very new to python. it's just a test script:
> > >
> > > import os
> > >
> > > os.rename(...)
> > > os.startfile()
> > > os.rename(...)
> > >
> > > i thought this would work, but it exits after the startfile call,
> > > probably it's not hard to make, but i don't know how.
> >
> >
>
>





More information about the Python-list mailing list