How to Pass MULTIPLE filenames to a Context Menu Shell Command?

前端 未结 2 1482
[愿得一人]
[愿得一人] 2020-12-09 01:33

Passing a single filename to a context menu shell command is simple:

[HKEY_CLASSES_ROOT\\*\\shell\\MyProgram\\Command]
@=\"program.exe %1\"

相关标签:
2条回答
  • 2020-12-09 01:54

    You can use Send To for this. It supports multiple files.

    In case this website goes offline:

    Open shell:sendto with Windows + R or paste it into your explorer address bar. It should redirect you to:

    C:\Users\<yourusername>\AppData\Roaming\Microsoft\Windows\SendTo

    Create a shortcut to your program in this folder and you should see it in your explorer right-click menu under Send to

    0 讨论(0)
  • 2020-12-09 02:17

    You may want to look at this post, as it says that this isn't really possible to pass multiple files to a single instance and you must rely on some form of IPC(Inter process Communication).

    0 讨论(0)
提交回复
热议问题