View Single Post
Old 03-23-2010, 01:01 AM  
Flow
Senior Member
 
Flow's Avatar
 
Join Date: Dec 2001
Posts: 306
Default

03-16-2010 11:01:51 Abandoned EXE process (pid=5552): X:\ioFTPD\system\eggdrop.bat
Above is from SystemError.log.
Cant i use the [Scheduler] for eggdrop?

# Check if the Windrop Bot is Online
BotChk = 00,15,30,45 * * * EXEC X:\ioFTPD\eggdrop\eggdrop.bat

My .bat file;

Code:
@echo off
set Systemroot=C:\WINDOWS
set path="X:\ioFTPD\scripts\pstools"
E:
cd "X:\ioFTPD\eggdrop"

rem Change this to the name of your bot's config:
set botscript=eggdrop.conf

rem Change this to the handle/botnet-nick of your bot:
set botname="sitebot"

rem Change this to the name of your bot's userfile:
set userfile=sitebot.user

rem You probably don't need to change anything below here....
if exist .share* del .share*
if exist *.stackdump del *.stackdump
if exist *.tmp del *.tmp
if not exist %botscript% echo Config file (%botscript%) missing.
if not exist %botscript% goto cantload
if exist %userfile% goto checkrunning
if exist %userfile%~new ren %userfile%~new %userfile%
if exist %userfile% echo Missing userfile... Using the last saved one..
if exist %userfile% goto checkrunning
if exist %userfile%~bak ren %userfile%~bak %userfile%
if exist %userfile% echo Missing userfile... Using the last backed up one..
if exist %userfile% goto checkrunning
if not exist %userfile% echo Userfile missing. No backup/last saved userfile either. =/
goto cantload

:checkrunning
pslist eggdrop > nul
if errorlevel 1 goto restart
goto end

:restart
set result=
if not exist eggdrop.exe echo eggdrop.exe not found!
if not exist eggdrop.exe goto cantload
echo Restarting Eggdrop...
hstart eggdrop.exe -nt
if errorlevel 8 echo Possibly Missing .dll File(s)? (tcl8*.dll, cygwin1.dll)
if errorlevel 8 goto cantload
goto success

:cantload
echo Could not reload the bot. =(
goto end

:success
echo Successfully Started Eggdrop (%botname% - %botscript%).

:end
My hsstart app:
http://www.ntwind.com/software/utilities/hstart.html

PsExec tool (pstools)
http://technet.microsoft.com/en-us/s.../bb897553.aspx

Last edited by Flow; 03-23-2010 at 03:42 AM.
Flow is offline   Reply With Quote