Batch Script - NET STOP/START
Advertisements
This command is used to stop and start a particular service.
Syntax
Net stop/start [servicename]
Example
NET STOP Spooler
The above command is used to stop the printer spooler service. Following is the output of the above command.
The Print Spooler service is stopping. The Print Spooler service was stopped successfully. NET START Spooler
The above command is used to start the printer spooler service. Following is the output of the above command.
The Print Spooler service is starting. The Print Spooler service was started successfully.
batch_script_network.htm
Advertisements