Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Windows › Auto SRCDS Restart
New Posts  All Forums:Forum Nav:

Auto SRCDS Restart

post #1 of 2
Thread Starter 
As you can see in my sig, I host a gmod server and sometimes the server can crash. I am using a .bat file to restart gmod when it crashes automatically but now that I am using Windows Server 2008 R2 a dialog box appears telling me that there was a problem and the console window does not close. When I manually close the dialog box, the server can then restart by itself. How can I disable this dialog box from appearing?

Here is the .bat file which probably does not have much relevance to the question but it's here anyway...

Code:
echo off
cls
echo SRCDS auto restart
title Garry's Mod auto restart
:srcds
echo (%time%) SRCDS started.
start /wait srcds.exe -gamemode sandbox -console -game garrysmod +map sb_gooniverse -maxplayers 8 -autoupdate
echo (%time%) Your server just closed or crashed. RESTARTING!
goto srcds
Fire Computer
(17 items)
 
Fire Yoga
(13 items)
 
Fire Server
(13 items)
 
CPUMotherboardGraphicsRAM
Intel Core i5-3570K Ivy Bridge 3.4GHz (3.8GHz T... GIGABYTE GA-Z77X-UD5H LGA 1155 Intel Z77 HDMI S... GTX680-DC2O-2GD5 CORSAIR DOMINATOR GT 4GB 240-Pin DDR3 SDRAM DDR... 
Hard DriveHard DriveOptical DriveCooling
Seagate Samsung Light Scribe DVD Burner H50 
OSMonitorKeyboardPower
Windows 7 Professional 64 bit ASUS VH226H 21.5" Logitech G15 Corsair 850W 
CaseMouseAudioAudio
Corsair 500R Logitech M500  HDA X-Plosion 7.1 Boston Acustics BA7500 
CPUGraphicsRAMHard Drive
Intel Core i5-3317U Intel(R) HD Graphics 4000 4GB x2 128 GB SSD 
Hard DriveOS
256GB SSD Windows 8 
  hide details  
Reply
Fire Computer
(17 items)
 
Fire Yoga
(13 items)
 
Fire Server
(13 items)
 
CPUMotherboardGraphicsRAM
Intel Core i5-3570K Ivy Bridge 3.4GHz (3.8GHz T... GIGABYTE GA-Z77X-UD5H LGA 1155 Intel Z77 HDMI S... GTX680-DC2O-2GD5 CORSAIR DOMINATOR GT 4GB 240-Pin DDR3 SDRAM DDR... 
Hard DriveHard DriveOptical DriveCooling
Seagate Samsung Light Scribe DVD Burner H50 
OSMonitorKeyboardPower
Windows 7 Professional 64 bit ASUS VH226H 21.5" Logitech G15 Corsair 850W 
CaseMouseAudioAudio
Corsair 500R Logitech M500  HDA X-Plosion 7.1 Boston Acustics BA7500 
CPUGraphicsRAMHard Drive
Intel Core i5-3317U Intel(R) HD Graphics 4000 4GB x2 128 GB SSD 
Hard DriveOS
256GB SSD Windows 8 
  hide details  
Reply
post #2 of 2
You may want to look into turning SRCDS into a service using instructions found here:

http://support.microsoft.com/kb/251192

Or, you might want to look into acquiring a tool like FireDaemon (http://www.firedaemon.com/), but I hear that might run into the same error window issues you're having right now.

Otherwise, you could look into using AutoHotKey (http://www.autohotkey.com/) or AutoIt (http://www.autoitscript.com/site/autoit/) to make a little macro program that'll close the window when it detects it open.
Autistic Savant
(18 items)
 
   
CPUMotherboardGraphicsRAM
Intel Core 2 Quad Q9550 Asus P5Q Deluxe Sapphire HD 5850 "Xtreme" Kingston DDR2-800  
Hard DriveHard DriveHard DriveHard Drive
Western Digital Caviar Blue WD5000AAKS Seagate ST31000340AS Hitachi DeskStar Maxtor 500GB 
Optical DriveCoolingOSMonitor
lol optical disks Prolimatech Megahalems Rev. B Windows 7 Build 7601.17514.101119-1850 x64 HP w2207 
KeyboardPowerCaseMouse
Saitek Eclipse II Corsair TX750  Custom A4 Tech Office 8K 
Mouse PadAudio
Allsop Black JVC HA-M750 
CPUMotherboardGraphicsRAM
Intel Core i5-2410m Hewlett-Packard 3385 AMD Radeon HD6630 Kingston DDR3-1333 SO-DIMM 
RAMHard DriveOptical DriveCooling
Samsung DDR3-1333 SO-DIMM Crucial M4 CT128M4SSD2 HP DVD-RAM UJ897 Derp Heatsink + Fan 
OSMonitorKeyboardPower
Windows 7 Build 7601.17514.101119-1850 x64  HP BrightView 14.5" Panel HP Chiclet Keyboard 90W AC Adapter 
CaseMouseAudio
HP Envy Shell Synaptics Touchpad w/ Optical crap Beats Audio 
  hide details  
Reply
Autistic Savant
(18 items)
 
   
CPUMotherboardGraphicsRAM
Intel Core 2 Quad Q9550 Asus P5Q Deluxe Sapphire HD 5850 "Xtreme" Kingston DDR2-800  
Hard DriveHard DriveHard DriveHard Drive
Western Digital Caviar Blue WD5000AAKS Seagate ST31000340AS Hitachi DeskStar Maxtor 500GB 
Optical DriveCoolingOSMonitor
lol optical disks Prolimatech Megahalems Rev. B Windows 7 Build 7601.17514.101119-1850 x64 HP w2207 
KeyboardPowerCaseMouse
Saitek Eclipse II Corsair TX750  Custom A4 Tech Office 8K 
Mouse PadAudio
Allsop Black JVC HA-M750 
CPUMotherboardGraphicsRAM
Intel Core i5-2410m Hewlett-Packard 3385 AMD Radeon HD6630 Kingston DDR3-1333 SO-DIMM 
RAMHard DriveOptical DriveCooling
Samsung DDR3-1333 SO-DIMM Crucial M4 CT128M4SSD2 HP DVD-RAM UJ897 Derp Heatsink + Fan 
OSMonitorKeyboardPower
Windows 7 Build 7601.17514.101119-1850 x64  HP BrightView 14.5" Panel HP Chiclet Keyboard 90W AC Adapter 
CaseMouseAudio
HP Envy Shell Synaptics Touchpad w/ Optical crap Beats Audio 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Windows
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Windows › Auto SRCDS Restart