1. Create a new text file and change the file extension to. bat or. CMD (for example, reseth3server. BAT) to any directory on the hard disk.
The write content is as follows:
Net stop h3server
Description: stop the service named "h3server.
Net start h3server
Explanation: enable the service named "h3server.
2. Click "Start Menu"> "Control Panel"> "Task Plan" to add a task plan.
1. click Next.
2. Click Browse, select the newly created reseth3server. BAT file, click OK, and then click Next.
3. Enter the task name, for example, restart the XX service and select when to execute the task.
4. Select the start date to indicate when the task will take effect. The default start date is the current date, which takes effect immediately after the setting is complete. Then, select the cycle for running this task. If it is a fixed time every day, select daily, if you want to select a fixed number of days, you can select the third item, then enter the number of days, and then set the exact execution time at the start time, that is, XX at XX seconds. Next step.
5. Set the Windows user account for this task. That is, the account used to log on to Windows. Note: If the current account password is changed after the task is set, the task cannot run after the password is changed. You need to set the task again and enter the new password.