Is there an event or something I could catch that would tell me that my console app is being terminated? Like by Windows being shutdown, etc.
Thanks
:afrog:
Printable View
Is there an event or something I could catch that would tell me that my console app is being terminated? Like by Windows being shutdown, etc.
Thanks
:afrog:
Console applications don't have events or message queues, and I doubt you could even subclass them.
are you talking about something like this?
http://www.experts-exchange.com/Prog..._21489049.html
Does this event get raised after the window has been closed or after the call has been made for closing it?
Could the console be re-written as a win service?
You could run the console application from within your program in a process, then when that process ends, do whatever you want...
You can check in my sig for a codebank example on automating the command prompt...
Looks like it, but it doesn't seem to work. Too be continued...Quote:
Originally Posted by kleinma
:afrog: