I created a small windows application with 4 buttons which generate XML files when clicked by the user. So, this should be manually triggered.
Now, the application is only to be used when a problem occurred in the automatic generation of files.
In the automatic generation, there will be no interaction from the user. The application is supposed to be scheduled to automatically run 4-5 times a day at specific times. During each run, the application should be able to perform all tasks performed by the 4 buttons so I thought of creating a method that will perform all their functions. For example, let's call it GenerateFiles().
Now, is there a way that I can run my Windows Application in a scheduled job specifically executing a method in it? In this example, how can I run my method, GenerateFiles(), with a scheduled task?
I searched in google but most say that I have to create a Console Application. I need to have the windows application since there will be manual usage of the program in case automation fails and its such a hassle in case of code changes to have two different applications for the manual and the automated.
This post has been edited by November-06: 29 August 2012 - 06:38 PM

New Topic/Question
Reply



MultiQuote




|