C# 4.0 aka C# 2010 General DiscussionDiscussions about the C# 4.0, C# 4, Visual C# 2010 language and tool not related to any specific Wrox book
Welcome to the p2p.wrox.com Forums.
You are currently viewing the C# 4.0 aka C# 2010 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
How to limit the number of instances of an application.
I am writing a simple folder watch service using C#.
This will monitor a folder for a .xml file and launch another application with that file as input parameter. Currently, in its vanilla flavour, it launchees the other application as soon as a file is dropped in the hot folder. This happens even when one file is being processed.
Is there a way I can limit the number of instances of the other application launched by the service?