Jump to content
Sign in to follow this  

runwait comand line

Recommended Posts

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..

Share this post

Link to post
Share on other sites

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...