how to open a windows folder?

Larry Bates larry.bates at
Fri Nov 4 17:57:29 CET 2005

Not elegant but this works:

import os
os.system(r'start explorer.exe "C:\temp"')

-Larry Bates

Bell, Kevin wrote:
> 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:
> 	from win32com.client import Dispatch
> 	Excel = Dispatch("Excel.Application")
> Any clues?

More information about the Python-list mailing list