I have a console app that is triggered by a scheduled task. I would like to run this console app permanently in a new thread and anytime a newer version of the console app is placed, it should run the main code. (maybe once the main code is done executing, it should run a monitor thread on the console exe. When the exe is changed, a shell execute could be called to the console app again and the original thread aborted?).
-
Maybe it doesn't need a new thread. Maybe I can add a file cache dependency with a callback that executes the console app. However, when the console app is done executing and exits, I'm guessing the cache is cleared.user666423– user6664232011-07-14 17:10:46 +00:00Commented Jul 14, 2011 at 17:10
-
I don't think you will be able to replace the console app exe while it is running. Is the console app long running? Are you wanting the console app to run at scheduled times, but if a new version is placed, then run it immediately, in addition to the scheduled time?hatchet - done with SOverflow– hatchet - done with SOverflow2011-07-14 17:11:18 +00:00Commented Jul 14, 2011 at 17:11
Add a comment
|