Welcome to shell: revealed Sign in | Join | Help

Getting currently selected files in active Explorer window

  •  02-16-2008, 3:34 PM

    Getting currently selected files in active Explorer window

    I am trying to get the selected files (file paths) from currently active Explorer windows using C#. I have come across Raymond Chen's article here and converted it to C#. It mostly works but there are some issues that I couldn't manage myself. It is working for one item, not all selected items. Probably the reason is that I am using Item() method of IFolderView, instead Items() method should be used. I can get number of selected items via ItemCount() method but I couldn't get Items() method work in managed world :) I have no idea about what type of data structures this method returns. Can anyone give me some pointers about how to make this work.

    Filed under: , ,
View Complete Thread
Powered by Community Server, by Telligent Systems © 2006 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement.