Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Net Stop /Net start command syntax

Posted on 2002-07-18
6
Medium Priority
?
10,471 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 9

Accepted Solution

by:
dlb6597 earned 1200 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
The Ideal Solution for Multi-Display Applications

Check out ATEN’s VS1912 12-Port DP Video Wall Media Player at InfoComm 2017. Kerri describes how easy it is to design creative video walls in asymmetric layouts and schedule detailed playlists ahead of time with its advanced scheduling feature.

 
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

Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.

Question has a verified solution.

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

This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

704 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