开发者

Start windows service on remote machine using NSIS script

开发者 https://www.devze.com 2022-12-20 12:16 出处:网络
Can I start a service on remote machine using NSIS script. I know we can use: sc \\\\machine start servicename

Can I start a service on remote machine using NSIS script. I know we can use:

sc \\machine start servicename

through DOS prompt. But can we do the same in NSIS? Can Si开发者_如何学编程mpleSC be used for this?


You could use exec.

ExecWait 'net start $servicename'

Edit: Oh, you meant starting the service on the remote machine...well:

ExecWait 'sc \\machine start servicename'
0

精彩评论

暂无评论...
验证码 换一张
取 消