Implement Explorer ContextMenu and pass multiple files to one program instance

后端 未结 3 874
别跟我提以往
别跟我提以往 2020-12-30 05:25

Situation

I have a 3rd party GUI application that accepts multiple files via CLI, for example:

MyProgram.exe \"file1\" \         


        
3条回答
  •  情歌与酒
    2020-12-30 05:35

    Why not write a .exe with Make single instance application checked.

    Then in that new application catch the MyApplication_StartupNextInstance as provided in the MyApplication class to catch all files being pushed by explorer, maybe let the application wait a second or 2 to make sure no following files are being sent by explorer and then combine those all into 1 string and parse them to your 3rd party app.

    If interested i can place some code getting you started

提交回复
热议问题