Link to home
Start Free TrialLog in
Avatar of wbaker57
wbaker57

asked on

Net Stop /Net start command syntax

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

ASKER CERTIFIED SOLUTION
Avatar of dlb6597
dlb6597

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vinnyd79
vinnyd79

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
oops,I meant net stop servicename
Avatar of jkr
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
Avatar of wbaker57

ASKER

Thanks,

Quotes were the trick.
Syntax is: net stop NavExchange