Welcome to shell: revealed Sign in | Join | Help
in Search

Getting currently selected files in active Explorer window

Last post 06-05-2008, 10:50 AM by ian. 4 replies.
Sort Posts: Previous Next
  •  02-16-2008, 3:34 PM 7741

    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: , ,
  •  03-26-2008, 3:26 AM 7838 in reply to 7741

    Re: Getting currently selected files in active Explorer window

    HI!!!

    huseyin

    Can you send me the code u converted to C# ?

    thanks

  •  03-27-2008, 12:10 PM 7842 in reply to 7741

    Re: Getting currently selected files in active Explorer window

    Did you try working as an array?
    Wake me up in 2010 for W7. For now I'm waiting for Vista to boot.
  •  05-21-2008, 2:42 AM 7936 in reply to 7741

    Re: Getting currently selected files in active Explorer window

    Hi,

     

    Can you send me your code buddy.

    Regards, 

  •  06-05-2008, 10:50 AM 7962 in reply to 7741

    Re: Getting currently selected files in active Explorer window

    Hi huseyin 

    I have try to convert that code to c# but did not managed to to it and I am really curious about your code.  Can you post it?

     

    thks 

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems © 2006 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement.