choose and open a folder in Windows

Tim Golden tim.golden at viacom-outdoor.co.uk
Wed Feb 15 06:37:25 EST 2006


[palo]

| But I didn't find how to make windows to open
| a given directory in file expolorer)
| P.

At the risk of suggesting the obvious, have you tried:

<code>
import os
os.system ("explorer.exe c:\\temp")
</code>

or 

<code>
import os
os.startfile ("c:\\temp")
</code>

or something similar?

TJG

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________



More information about the Python-list mailing list