![]() |
|
Last Chao Server Restarter.. - Printable Version +- LCKB (https://lckb.dev/forum) +-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109) +--- Forum: General Section (https://lckb.dev/forum/forumdisplay.php?fid=216) +---- Forum: Development Showroom (https://lckb.dev/forum/forumdisplay.php?fid=114) +---- Thread: Last Chao Server Restarter.. (/showthread.php?tid=682) |
- Nikolee - 02-20-2012 Hey guys i try to create for me (And other PPL) a Server restarter because my Connector Crashs every 2 Hours or 5 Hours, so i try this code : While 1 While ProcessExists("lcsm.exe") ----> Here can be Connector.exe too. Sleep(100) WEnd Sleep(30) Run( "lcsm") Do Sleep(100) Until ProcessExists("lcsm.exe") WEnd But the Problem is, that the Connector only Crash and then i dont press the "Programm Close" button it dont terminate the Process.. I tried to Include ProcessClose but i did always something wrong^^ I hope someone can include into the code that if Connector.exe not Responding then run lcsm.exe ^^ - MrFunny - 02-20-2012 I dont know how to write it but you ccan tray, with command, remove lscm.exe from task meneger. when it ar down.. or "programm close" it Enother exe in task meneger) , Its my opinion but i sel dont know how to to thes) |