Win7 how to start and stop Windows service programs using the command line

Source: Internet
Author: User
Tags command line

There are a number of ways to start the Stop service program:

Some programs themselves provide a set of interfaces, you can set up the Kai-stop in this way, you can also use a number of Third-party programs to control the start and stop, such as a certain guardian programs, and the Windows System service management to specify the service program Kai-stop; But these methods are cumbersome to operate, If you need to switch frequently to stop, the above mode of operation is a bit verbose, at this time through the command line to start and stop is very convenient way. The use of the command line is also very simple, the following into the actual operation.

Methods/steps are as follows:

1, the right mouse click on the desktop "Computer" to select the "Management" menu item.

2, click on the "Management" menu, will open the Computer Management window, in the left tree-shaped list, click the "Services" node. The right side of the window is the list of system services items, with service names, service descriptions, status, and so on, where you can terminate the service and adjust how the service is started. Below, we take the "MSSQLSERVER" service in the red circle in the figure as an example.

3, select the service in the list of services, click the right mouse button, in the pop-up menu select the "Properties" menu, open the Properties window.

4. The purpose of opening the Properties window is to get the service name, because the name you see in the list is called "Display name" and you must specify the service name when you use the command line. The red circle in the picture, this name can be selected with the mouse, press the shortcut key CTRL + C to copy to the system Clipboard standby.

5, with any editor can edit the text, the system comes with Notepad, open Notepad, paste just copied the service name to the text.

6. Add the other parts of the order. Start Service command: NET STAR, stop command with command: net stop, supplemental to service name. Start and stop creating a separate text to control startup and stop.

7. Save the document as. bat format. Click on the File menu in the Notepad menu, select Save, in the pop-up Save dialog box Note: Set save type for all files so that you can name the file suffix. You can, of course, change the file name extension to. bat after you save it in the explorer. In this way, the service command line files that start and stop are all done, and you can easily start and stop the service. Windows7 Tutorial

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.