python : how to Opens folder with specified items selected on Windows

Tim Golden mail at timgolden.me.uk
Fri Apr 19 12:07:05 EDT 2013


On 19/04/2013 16:54, iMath wrote:
> I want to Opens folder with specified items selected on Windows ,I
> looked up the The Windows Shell Reference found a function fit for this job
> 
> SHOpenFolderAndSelectItems
> 
> http://msdn.microsoft.com/en-us/library/windows/desktop/bb762232(v=vs.85).aspx
> 
> but I cannot find an example on how to use it with python
> 
> so anyone can give a little example ?
> 
> I have another extra requirement :if that folder already open ,don’t
> open it again ,just activate it and selected the file 

Have a look over here:

  http://mail.python.org/pipermail/python-win32/2012-September/012533.html

TJG




More information about the Python-list mailing list