开发者

Windows explorer get list of selected items and pass it to another process

开发者 https://www.devze.com 2023-04-07 19:20 出处:网络
I have to create File/Folder management system. In which user can select multiple files/folder and from context menu execute an command.

I have to create File/Folder management system. In which user can select multiple files/folder and from context menu execute an command. That command sends list of开发者_如何学编程 all selected files/folders list to invoke a process. So that, process can work on file/folder list. If process is running the context menu should not shown or greyed out.

I added context menu but can't find the way to disable it. How can I do all this? Any possible study link will help a lot?


Your IContextMenu::QueryContextMenu handler can apply whatever logic you desire to determine whether to show/hide a menu item, and if shown, whether it is enabled or disabled. Note, however, that in general, shell extensions should not be written in managed code due to CLR injection concerns.

0

精彩评论

暂无评论...
验证码 换一张
取 消