c# - Is there a way to monitor the state of a console application? -


is there way monitor state of console application?

i trying build user interface shows whether or not console application running on server (processing files). if running, show current state: how many files processed, file being processed, etc.

the way can think of doing this:

  1. create text/xml file when application started
  2. update text file information current state each object processes
  3. delete text file when application finished processing

to me, doesn't seem or efficient way it. there way detect if clickonce application running, , perhaps other way access "messages" or log of show progress?

note - looking using nodejs this, unsure if has capability.

first, should consider writing windows service instead of console application.

that said, scraping log file application writing reasonable approach. ensure never gets big.

alternatively, @ using custom performance counters. open door using system monitor/perfmon monitoring tool, no need write client code.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -