By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,442 Members | 1,457 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,442 IT Pros & Developers. It's quick & easy.

how to open a windows folder?

P: n/a
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?

Nov 4 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
With module os, you may execute some files.
something like :
os.execl("explorer.exe", *arg)
(syntax ?)
you sould also be able to send some command to console.
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?

Nov 4 '05 #2

P: n/a
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?

Nov 4 '05 #3

P: n/a
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?


Nov 4 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.