C# : how to - single instance application that accepts new parameters?

后端 未结 4 1924
离开以前
离开以前 2020-12-01 11:26

I\'m creating a (C#) program that downloads binaries using NZB files, there may only be one instance of my application running at any time.

So when a user doubleclic

4条回答
  •  庸人自扰
    2020-12-01 11:42

    Try this: Your main program creates a named pipe or other interprocess communication facility and listens on it. You create a separate small program that, when run with an NZB file as a parameter, opens the pipe, feeds the file info into it, and exits. Your main program then processes the new file and downloads it.

提交回复
热议问题