「Windowsの右クリックメニューから複数ファイルをまとめて開く」の版間の差分
Notion-MW |
Notion-MW |
||
234行目: | 234行目: | ||
まずは、COMを用いて実装するという方法がある。基本的にはこちらが綺麗な解決策である。 | まずは、COMを用いて実装するという方法がある。基本的にはこちらが綺麗な解決策である。 | ||
IExecuteCommandというインターフェースを具体的に実装している[https://learn.microsoft.com/en-us/windows/win32/shell/samples-executecommandverb Microsoftのサンプル] | IExecuteCommandというインターフェースを具体的に実装している[https://learn.microsoft.com/en-us/windows/win32/shell/samples-executecommandverb Microsoftのサンプル]があったので、それを参考に、「取得したファイル・フォルダの情報を引数または標準入力として渡しつつ指定されたコマンドを起動する」というプログラムを作成した。 | ||
[https://github.com/ge9/ExecuteCommand-Pipe https://github.com/ge9/ExecuteCommand-Pipe] | [https://github.com/ge9/ExecuteCommand-Pipe https://github.com/ge9/ExecuteCommand-Pipe] |