Run only one instance of your application at the certain moment of time.
TOneInstance is able to catch loading of new instances, and then pass the used command line back to the first instance for processing. Just put the component on your form, then give some codes for the event OnNewInstanceLoad(NewAppHandle: Cardinal; NewCommandLineW: PWideChar).