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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
oops,I meant net stop servicename
net stop rtvscan
should do it.
If not, you can find the correct service name in the registry under
HKEY_LOCAL_MACHINE\SYSTEM\ CurrentCon trolSet\Se rvices
should do it.
If not, you can find the correct service name in the registry under
HKEY_LOCAL_MACHINE\SYSTEM\
ASKER
Thanks,
Quotes were the trick.
Quotes were the trick.
Syntax is: net stop NavExchange
net start servicename