开发者

Windows Explorer Context menu opening already running Delphi app

If I right click on several files and choose windows context menu, how to send the selected name of files to my program. My program has already running and I dont want my program to be executed again because my p开发者_开发百科rogram use mutex and uac.

I am using delphi, if you have clues, reference or sample code, really appreciate.


Besides using launcher app like Ignacio suggests you could use DDE to contact already running applications. Another option is writing your own shell extension. You can read more about it here.


Use a helper app that starts the program if necessary, then sends the filenames to be processed via a mailslot.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜