© J.C. Kessels 2009
MyDefrag Forum
May 21, 2013, 07:20:33 pm
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
MyDefrag Forum
>
MyDefrag v4 Forum
>
Scripts, and other contributions
>
Stop a service
Pages: [
1
]
« previous
next »
Print
Author
Topic: Stop a service (Read 854 times)
HugoLia
Newbie
Posts: 1
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
Logged
RobL
JkDefrag Senior
Posts: 21
Re: Stop a service
«
Reply #1 on:
November 09, 2009, 06:02:12 pm »
Try RunProgram instead of RunCommand
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
MyDefrag v4 Forum
-----------------------------
=> Announcements
=> Questions and help
=> Bugs and problems
=> Requests for new features
=> Scripts, and other contributions
-----------------------------
JkDefrag v3 Forum
-----------------------------
=> Announcements
=> Questions and help
=> Bugs and problems
=> Requests for new features
=> Programming with the library
Loading...