how to open a windows folder?

Tim Golden tim.golden at viacom-outdoor.co.uk
Fri Nov 4 11:53:30 EST 2005


[Bell, Kevin]

> I'd love to be able to open up a windows folder, 
> like c:\temp, so that it pops up visually.  
> I know how to drill down into a directory, but I
> can't figure out how to open one up on screen.  
> Would I have to make a call to windows explorer 
> in a similar way that I hit Excel with:

Ummm. I may have misunderstood you, but would
either of:

import os
os.startfile ("c:/temp")

# or

import os
os.system (r"explorer c:\temp")

be what you wanted?

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