Jump to content

Recommended Posts

Posted

Thanks in advance for help on this.

I need to stop and start the Antivirus service. my problem is the service is 2 words so i need to have quotes around it to work properly I cant seem to get the quotes right in a runwait(@comspec line..

I have

RunWait(@commSpec & " /c" & "sc stop ""symantec antivirus"" & "")

It fails every time.  I can get it to work if i just save the line(sc stop "Symantec AntiVirus") as a .cmd then execute the cmd file. but that seems like extra work..

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...