将多个文件/文件夹从Windows资源管理器传递到外部应用程序 [英] Pass multiple files / folders from windows explorer to external application

查看:101
本文介绍了将多个文件/文件夹从Windows资源管理器传递到外部应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何使Windows资源管理器将多个文件/文件夹传递到注册表中引用的外部应用程序(c#)吗?

Hi does anyone know how to get windows explorer to pass multiple files / folders through to an external app (c#) referenced in the registry?

我目前能够使用%1语法对单个文件/文件夹执行操作,但不确定如何使资源管理器通过多个项目。

I am current able to act upon a single file / folder using the %1 syntax but not sure how to get explorer to pass through multiple items.

有人知道怎么做吗?

推荐答案

在资源管理器中选择多个文件时,将调用外壳上下文菜单扩展的IShellExtInit :: Initialize方法,而pdtobj包含选择内容。
不支持编写托管的shell扩展。

When you select multiple files in Explorer, your shell context menu extension's IShellExtInit::Initialize method will be called and pdtobj contains the selection. Note writing managed shell extension is not supported.

这篇关于将多个文件/文件夹从Windows资源管理器传递到外部应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆