How to restart service using command prompt?

前端 未结 7 1767
一生所求
一生所求 2020-12-29 04:15

I want to restart Windows service using command prompt in [Icons] section using Inno Setup. Please help me to solve the problem.

7条回答
  •  春和景丽
    2020-12-29 05:12

    You could create a .bat-file with following content:

    net stop "my service name"
    net start "my service name"
    

提交回复
热议问题