Re: windows-less console app visual progress indicator
Peter Obiefuna <[email protected]>
| Newsgroups | gmane.comp.windows.devel.dotnet.clr |
|---|---|
| Message-ID | <[email protected]> |
How will the App be scheduled? One design principle for unattended execution is that you don't assume that someone is sitting there on the desktop to see your brief balloon. Again, it may be installed on a server whose monitor is usually turned off. This sounds to me like a batch job. I advice you schedule it in a good batch scheduler and write out your logs to text file. At the end, you can post the text file to a public location for operational people to check if it ran successfully or you can send the log by email to a mailing list you'll maintain. This would be my preferred implementation. The scheduling engine can record the exit status if you modify your Main() procedure to "static int Main()" which by convention returns 0 for success and any other int for an errorcode of your choice. If it must be a balloon, you probably need an app with a SystemTray control and pop up the balloon when you want, but remember, people may still need to know the status of the job, even if it ended when they were out getting coffee. A more sophisticated system will have the server-side engine of your choice, and a client-side installable, ie Windows. The client-side may subscribe to a remoting event on the server and pop-up the balloon. A good example of this pattern is CCTRAY of CruiseControl.NET P -------------------------------------------------- From: "chris Burgess" <[email protected]> Sent: Thursday, December 06, 2007 8:26 AM To: <[email protected]> Subject: [DOTNET-CLR] windows-less console app visual progress indicator > I have a very small windows-less console app that runs very quickly > and doesn't require user interaction. What would be a simple, > non-intrusive visual indicator that the job has run and completed. I > want something that will let them know it's done for a second or two > and then go away. I don't want the user to need to dismiss a dialog > box. > > Thanks! > > Chris > > =================================== > This list is hosted by DevelopMentor® http://www.develop.com > > View archives and manage your subscription(s) at > http://discuss.develop.com > =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com