View Single Post
Old 10-10-2004, 06:00 AM  
MonsterDK
Junior Member
 
Join Date: Dec 2003
Posts: 21
Default Bot restart and kill through ioFTPD

I've looked on the forums and got as far as below with this, which worked fine on an older version of ioFTPD but don't seem to work on latest version (ioFTPD 5.8.5).

I want to be able to log onto the client and restart the eggdrop bot using commands (site bot) and also to be able to kill it (site botkill).

for eggdrop kill i'm using...
BAT FILE.....
@echo off
c:\WindropIO****ed\pskill.exe eggdrop
:END

and in the ioFTPD.ini....
botkill = EXEC ..\scripts\botkill.bat
botkill = 1MS
The above works fine.



For eggdrop restart...
BAT FILE...
@echo off
CD c:\WindropIO****ed
pslist eggdrop > nul
IF ERRORLEVEL 1 GOTO con
ECHO BOT STILL RUNNING (DiD NOTHiNG)
GOTO END

:CON
CD c:\WindropIO****ed
start hidewndw /r /n 'c:\WindropIO****ed\eggdrop.exe -nt'
ECHO BOT DOWN (RESTARTiNG iT)

:END

and in the ioFTPD.ini...
bot = EXEC ..\scripts\restart.bat
bot = 1MS

The above does not give any errors but does NOT work
when the bat file is run on the machine manually it works fine so the bat file does work, just not as a command from ioFTPD..... anyone any ideas or solutions around this?
MonsterDK is offline   Reply With Quote