Is it possible to keep an executable in memory in the below circumstance, baring in mind it is reading different lines of a text file:
Process.Start("cmd.exe",
"/c test.exe \"" + exename + "\" > output.txt").WaitForExit();
To clarify, test.exe would not have to create a separate instance for every line that is read and then run.
You might want to develop your application as a windows service instead.
http://msdn.microsoft.com/en-us/library/d56de412(v=VS.100).aspx
You will then have more control over application lifetime among other things.
If you already have the application written then it should be trivial to convert to a windows service.