Solved

Net Stop /Net start command syntax

Posted on 2002-07-18
6
10,342 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

778 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