I need to run an VB.NET exe using either Windows Task Scheduler or Sql Server Agent Job. What do I need to code in the exe so it will report to the task or job if it completed successfully or failed?
Also, what do I need to add to the task or job so it will wait for the program to complete?
Have never done this before so don't know where to start. Have been searching the web for 2 days but don't really find what I need.
Thanks for any help in advance.