bobheart Posted August 28, 2004 Posted August 28, 2004 How would do you a NET - START, STOP of apache with @ComSpec ? Thanks for the help .
top_gizmo Posted August 29, 2004 Posted August 29, 2004 Here is an example of a net start, just change the ccmexec to your service you want to start, do the same with net stop. RunWait(@ComSpec & " /c " & 'net start ccmexec',@TempDir,@SW_HIDE)
bobheart Posted August 29, 2004 Author Posted August 29, 2004 I can't seem to get it to stop . the net is apache , Apache.exe . but i can't get it to stop . haven't treid start yet .
top_gizmo Posted August 29, 2004 Posted August 29, 2004 I can't seem to get it to stop . the net is apache , Apache.exe . but i can't get it to stop . haven't treid start yet . <{POST_SNAPBACK}>does it work from the command line? Top
bobheart Posted August 29, 2004 Author Posted August 29, 2004 Just gave it one more try and didn't work with apache.exe . So gave apache2 a try and that worked ? the exe is apache.exe but I see in the Servies it is apache2 . so all give that a try with the script now .
bobheart Posted August 29, 2004 Author Posted August 29, 2004 Script works RunWait(@ComSpec & " /c " & 'net stop Apache2',@TempDir,@SW_HIDE) Thanks ..
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