Greetings...<br><br>Would anyone happen to have some sample code of how to use SHOpenFolderAndSelectItems? I've been tinkering with it and haven't got anything to work yet. This is the closest I've got:<br><br>
>>> from win32com.shell import shell<br>>>> shell.SHOpenFolderAndSelectItems((r'c:\junk', ), 1)<br>Traceback (most recent call last):<br> File "<stdin>", line 1, in <module><br>
TypeError: Must be an array of IDLs<br><br>The errors I've seen in my experiments mention "IDLs" and "ITEMIDLIST" objects. I've dug a bit through the pywin32 docs and MDSN and didn't have much luck understanding what the Python wrapper required and how to construct these object. I must admit I don't have much Win32 API programming experience.<br>
<br>I'm using Active State's Python 2.6.2.2 on Vista and I installed the 32 bit version of pywin32, build 217.<br><br>For reverence, here's some links:<br>I submitted the feature request for SHOpenFolderAndSelectItems: <a href="http://sourceforge.net/tracker/?func=detail&aid=3396444&group_id=78018&atid=551957">http://sourceforge.net/tracker/?func=detail&aid=3396444&group_id=78018&atid=551957</a><br>
<br>The changeset that implements this function is here: <a href="http://pywin32.hg.sourceforge.net/hgweb/pywin32/pywin32/rev/1452829d69ec">http://pywin32.hg.sourceforge.net/hgweb/pywin32/pywin32/rev/1452829d69ec</a>. <br>
<br>And, here's the MSDN doc: <a href="http://msdn.microsoft.com/en-us/library/bb762232%28v=vs.85%29.aspx">http://msdn.microsoft.com/en-us/library/bb762232%28v=vs.85%29.aspx</a><br><br>Any nudges in the right direction would be helpful.<br>
<br>Thanks!<br><br>-Scott<br>