i am using a c# executable file to do some jobs. it is running on a certain time everyday. my problem is how to exit the process when it finish doing the job?
i try to kill it in main function, but it does not work. because i check the Task Manager, the process is still there. i have to right click the process in task manager to end it manually. How to end the process automatically? i have to put it in automation server.
static void Main()
Form frm = new Form1();
Application.Run(frm);//do some jobs
frm.Close();//finished, then close
Application.Exit();//exit, but it still stay in Task manager,how to end it automatically?