Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch Script Help

Status
Not open for further replies.

davesnyder

IS-IT--Management
Joined
Jul 7, 2008
Messages
1
Location
US
Can Someone please give me an example of a batch script. I need a script that will restart a service each night at 1:am

I know that services can be re-started with 'net stop/start <servicename>'

Thank you in advance for any help you can offer.
 
Create a script using the commands you mention and use Windows task scheduler to run the script at 01:00

-------------------------------

If it doesn't leak oil it must be empty!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top