Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 25, 2013, 10:56:14 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  MyDefrag v4 Forum / Scripts, and other contributions / Stop a service on: November 09, 2009, 05:11:51 pm
I would like to stop a service as the script begin, and restart the service when the script ends.

I tried with:
RunCommand("net","servicename","stop")
at the beginning of the script, and:
RunCommand("net","servicename","start")
at the end, but it gives me a sintax error at line xx.

Can anyone achieved to do something like this with a script?
Can anyone help me discover what's wrong?

Thanks
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!