I have been using this function to execute an external application and wait until it finishes before executing the next line
But now because I use it in a number of applications, I am thinking of putting this function into a new unit, so I can just include this unit in each application rather than copy-pasting the whole code.
However it involves Application global variable, should I include Forms in my unit? Or is there a more suitable function to be put in a separate unit?
(I need the function to wait until the external app finishes before executing the next line, and can take arguments for running the external app)
Thank you in advance