Solved

Net Stop /Net start command syntax

Posted on 2002-07-18
6
10,359 Views
Last Modified: 2013-12-28
I need to turn off Virus protection before a backup job and then restart the services after the job is complete.

I need a command line within a batch file to do this.
____________________________
I have tried:

NET STOP rtvscan.exe

the error returned is:

System error 1060 has occurred.
The specified service does not exist as an installed service.
___________________________
I have also tried:

NET STOP c:\program files\NAV\rtvscan.exe
and it returns a syntax error:

The syntax of this command is
NET STOP service.
__________________________________


300 points for a fast response.

Thanks,

Whit

0
Comment
Question by:wbaker57
6 Comments
 
LVL 9

Accepted Solution

by:
dlb6597 earned 300 total points
ID: 7162979
you need to use the actual service name as it appears in control panel, services.  If it contains spaces, you must put quotes around the service name.

0
 
LVL 28

Expert Comment

by:vinnyd79
ID: 7163059
to get the actual service name just type in NET START without any parameters.It will give you a list of all the running services so you can get the actual service name.Then just use

net start servicename
0
 
LVL 28

Expert Comment

by:vinnyd79
ID: 7163063
oops,I meant net stop servicename
0
Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

 
LVL 86

Expert Comment

by:jkr
ID: 7163307
net stop rtvscan

should do it.

If not, you can find the correct service name in the registry under

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
0
 

Author Comment

by:wbaker57
ID: 7163418
Thanks,

Quotes were the trick.
0
 

Expert Comment

by:Fixy
ID: 8427315
Syntax is: net stop NavExchange
0

Featured Post

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
An article on effective troubleshooting
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question