View Single Post
Old 10-31-2005, 03:45 PM  
PaRaNoiD_JaCK
Senior Member
 
Join Date: Mar 2005
Posts: 101
Default

Works fine here when using it with ioservice. I have the windrop start with OnServerStart so it`s running under the same account as ioFTPD.

That error sounds like it cant find ioftpd cause it`s running under a different account than system.

This what i use to have it start with OnServerStart

ioftp.ini:

[Events]
OnServerStart = EXEC E:\windrop\HideRun.exe E:\windrop\botchk.bat

botchk.bat content

Code:
@echo off
set Systemroot=C:\WINDOWS
set path="E:\windrop\tools\pstools"
E:
cd "E:\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="PaRaNoiD"

rem Change this to the name of your bot's userfile:
set userfile=paranoid.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 egg > 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...
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
You can grab pstools from here:

w*w.sysinternals.com/Utilities/PsTools.html

HideRun.exe will hide the cmd window from showing when excuted.
PaRaNoiD_JaCK is offline   Reply With Quote