Batch file for restarting a service

Associate
Joined
8 Jul 2004
Posts
1,818
Location
London
What kind of commands do I need in a batch file to force it to restart service "X" on a server every 2 days?

OS: Windows 2003 Enterprise SP1
 
Hi mate,

So in notepad I type:
Net Stop "X"
Net start "X"

Save it as ServiceX.bat and create a new scheduled task to run it every 2 days?

Assuming of course the service name is actualy X.
 
Back
Top Bottom