nant remote start and stop services

i though, stopping and starting services on a remote maschine is almost impossible… but i was mistaken…

<target name=”startService”>
    <exec program=”sc.exe”>
         <arg line=”\\${server} start ${service.name}”/>
    </exec>
</target>

thats it… just run the sc.exe… but i am not really unhappy of the simpleness of this solution 😛

Comments are closed.