Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   Dev Hardware ForumsSOFTWAREProgramming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Hardware Forums Sponsor:
  Trader Rating: 0 · #1  
Old February 5th, 2008, 05:35 PM
kx125 kx125 is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 1 kx125 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 50 sec
Reputation Power: 0
Question Auto Restart

My Issue: I have a web server that is currently maxed out and I have to restart it everyday. I will be getting a new server shortly but in the mean time what I want to do is create a batch file that will restart the server and also log the event into a text file each time it restarts. I haven't looked much into this, but I was told that I could use Windows Scheduler to kick off the batch file everyday at a specific time that would be able to complete this task. This is what I want:

Scheduler kicks off batch file at 5am every morning that logs the event and restarts computer...possibly get an email notification??? (That would be cool)

Can anybody give me the code to put in the batch file to do this?...and also tell me where the best place to put the file is and so on?

Reply With Quote
  Trader Rating: 0 · #2  
Old February 6th, 2008, 04:30 PM
Legitimize Legitimize is offline
Contributing User
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Location: USA
Posts: 84 Legitimize User rank is Sergeant Major (2000 - 5000 Reputation Level)Legitimize User rank is Sergeant Major (2000 - 5000 Reputation Level)Legitimize User rank is Sergeant Major (2000 - 5000 Reputation Level)Legitimize User rank is Sergeant Major (2000 - 5000 Reputation Level)Legitimize User rank is Sergeant Major (2000 - 5000 Reputation Level)Legitimize User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 21 h 24 m
Reputation Power: 48
Send a message via AIM to Legitimize Send a message via MSN to Legitimize Send a message via Yahoo to Legitimize
I really think you should have made a new topic with your problem in it instead of bringing my old one up. Just to let you know. Can a mod please close the topic. Thanks.

~Legitimize

Reply With Quote
  Trader Rating: 1 · #3  
Old February 6th, 2008, 05:15 PM
Dngrsone Dngrsone is offline
Gone, gone gone
Dev Hardware God 6th Plane (7500 - 7999 posts)
 
Join Date: May 2004
Location: in the real world
Posts: 7,767 Dngrsone User rank is General 62nd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 62nd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 62nd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 62nd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 62nd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 62nd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 62nd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 62nd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 62nd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 62nd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 62nd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 62nd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 62nd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 62nd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 62nd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 62nd Grade (Above 100000 Reputation Level)  Folding Points: 339338 Folding Title: Super Ultimate Folder - Level 1Folding Points: 339338 Folding Title: Super Ultimate Folder - Level 1Folding Points: 339338 Folding Title: Super Ultimate Folder - Level 1Folding Points: 339338 Folding Title: Super Ultimate Folder - Level 1Folding Points: 339338 Folding Title: Super Ultimate Folder - Level 1Folding Points: 339338 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 1 Month 3 Weeks 6 Days 22 h 35 m 15 sec
Reputation Power: 5124
Quote:
Originally Posted by Legitimize
I really think you should have made a new topic with your problem in it instead of bringing my old one up. Just to let you know. Can a mod please close the topic. Thanks.

~Legitimize


Thread split. Thank you for playing.
__________________
Yes, it is very possible, in fact, highly probable, that you are wrong.

You would be a better person if you would just admit that.

And I would be less annoyed.



"I like doggies....and apparently dinousaurs, mostly because they eat cats!" --Nilpo

Reply With Quote
  Trader Rating: 1 · #4  
Old February 6th, 2008, 05:24 PM
weevilofdoom's Avatar
weevilofdoom weevilofdoom is offline
BLURG
Dev Hardware Loyal (3000 - 3499 posts)
 
Join Date: Sep 2004
Location: Oregon
Posts: 3,431 weevilofdoom User rank is General 39th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 39th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 39th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 39th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 39th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 39th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 39th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 39th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 39th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 39th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 39th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 39th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 39th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 39th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 39th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 39th Grade (Above 100000 Reputation Level)  Folding Points: 32443 Folding Title: Starter FolderFolding Points: 32443 Folding Title: Starter Folder
Time spent in forums: 2 Months 1 Day 11 h 26 m 39 sec
Reputation Power: 3596
Send a message via ICQ to weevilofdoom Send a message via AIM to weevilofdoom Send a message via MSN to weevilofdoom Send a message via Yahoo to weevilofdoom Send a message via Google Talk to weevilofdoom
For windows2000, but should apply to all others http://support.microsoft.com/kb/317584

Straight from MS support itself. No batch file needed.
__________________

Reply With Quote
Reply

Viewing: Dev Hardware ForumsSOFTWAREProgramming > Using batch to restart server


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway