VB.NET Share Code / Centralize Code
<p>I have an application that will be running on several desktop computers simultaneously (It will stay open 24/7). At midnight, Data will be copied from one table to another. Since my program will be open on several different machines, it will attempt to make this transaction multiple times which could cause loss of data. How do I centralize my code where this event will occur only one time? Any help will be greatly appreciated. I have several ideas as to how I could do this by scheduling a task on windows using a small app I made; however, my desire is to include the code to "copy the tables" in the application itself. Thanks.</p>