How would I go about making a file open. Not the way you might think.

kyosohma at gmail.com kyosohma at gmail.com
Thu Aug 23 09:17:00 EDT 2007


On Aug 23, 2:09 am, "Hendrik van Rooyen" <m... at microcorp.co.za> wrote:
> Lamonte Harris  wrote:
> >Basically you can open a file by double clicking, and by default it would open
>
> w/ what every program you have it set >to.  Most text files would open in
> notepad.  How can I make a txt open so that notepad opens w/ the content in it
> by >using just python.
>
> I asked this question just yesterday - and Tim Golden answered:
>
> os.startfile()
>
> - Hendrik

Golden knows a lot. That's a good way to do it. I recommend it too!

Mike




More information about the Python-list mailing list