goodmanjl531 Posted January 27, 2014 Share Posted January 27, 2014 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.. Link to comment Share on other sites More sharing options...
Solution strongy Posted January 27, 2014 Solution Share Posted January 27, 2014 @Comspec instead of @Commspec may help you to start off with. Try this out, untested.. RunWait(@ComSpec & ' /c sc stop "symantec antivirus"') Link to comment Share on other sites More sharing options...
goodmanjl531 Posted January 27, 2014 Author Share Posted January 27, 2014 Thanks so much that did it... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now