views:

394

answers:

1

Is it possible to create a windows desktop shortcut that will restart a windows service?

I'd like a button to restart my apache service after I have made changes to the config file.

+3  A: 

You can do this in a batch file, then make a shortcut to it.

net stop "Service Name"
net start "Service Name"
Daniel A. White
Works a treat, thanks.
Jon Winstanley
Thanks just what I needed.
Mex