How to select a folder with native windows dialog box?

Roger Upole rupole at hotmail.com
Wed Jun 14 21:09:38 EDT 2006


<flaus.a at wanadoo.fr> wrote in message news:1150317678.028483.49080 at i40g2000cwc.googlegroups.com...
> Thanks for your answer, it's working fine!
>
> For information, the function to use to get the pathName is
> shell.SHGetPathFromIDList
> It returns an error if you select a special folder (!?!?) but otherwise
> it's working fine... And I was unable to fix this issue.

SHGetPathFromIDList only works for real filesystem folders.
Pseudo-folders like Control Panel or Network Connections
throw an error.  You can use PyIShellFolder.BindToObject
to get an interface to perform operations on these.

      Roger





More information about the Python-list mailing list