Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 21, 2013, 07:20:33 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Stop a service  (Read 854 times)
HugoLia
Newbie
*
Posts: 1


View Profile
« 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
Logged
RobL
JkDefrag Senior
****
Posts: 21


View Profile
« Reply #1 on: November 09, 2009, 06:02:12 pm »

Try RunProgram instead of RunCommand
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!