View Single Post
Old 04-16-2004, 03:16 PM  
MalcolmX
Registered User
 
Join Date: Mar 2004
Posts: 59
Default

Quote:
Originally posted by Mouton
edit your site exec batch file could help...
try to cd to your windrop dir...
I´m afraid i´ve lost you here, what exactly do you want me to do? Edit the batfile? I´ve done that already, if you are referring to botchk.bat, that one that is supposed to start the eggie from inside ioFTPD. Looks like this:

@echo off
C:
cd "C:\windrop"

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=xxxxxxx

rem Change this to the name of your bot's userfile:
set userfile=xxxxxxxxx.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
taskisrunning eggdrop.exe
if errorlevel 2 goto end
if errorlevel 1 goto end
if errorlevel 0 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...
HideRun.exe 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

The xxx´s is replacement letter as you understand.
The eggdrop starts just fine using the batfile from a command line in a command window, it just cant be started from within ioFTPD calling it with SITEBOT = EXEC c:\windrop\HideRun.exe c:\windrop\botchk.bat.
MalcolmX is offline   Reply With Quote