Click here to Skip to main content
15,891,607 members
Articles / General Programming / Threads

A Singleton Application with Interprocess Communication in C#

Rate me:
Please Sign up or sign in to vote.
3.72/5 (6 votes)
1 May 2020MIT3 min read 9.9K   167   11  
Creating an application that can run once, but then accept command line args from subsequent runs
This tip teaches how to make an application that will only run the main portion once. While that is running, subsequent runs will not start the main app again. Instead, they will pass their command line arguments to the main running app. This is a solid way to handle apps that can run in a single instance, and then be called again to open documents specified on the command line.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The MIT License


Written By
United States United States
Just a shiny lil monster. Casts spells in C++. Mostly harmless.

Comments and Discussions