Code:
bind pub o|o !start proc_iostart
proc proc_iostart {nick uhost hand chan args} {
global binary announce
putquick "PRIVMSG $chan :-\[START\] + Attempting to start ioFTPD"
cd c:/FTP-SERVER/ioFTPD/system
exec pslist ioFTPD > nul
If
# (ERRORLEVEL 1) {
#### TCL IFS USE :: IF { } { } format no ()'s
#if {$errorlevel??? == 1} or if {$errorlevel}
exec ioFTPD.exe
putquick "PRIVMSG $chan :-\[START\] + ioFTPD started"
}
Else
{
putquick "PRIVMSG $chan :-\[START\] + ioFTPD already running"
}
cd c:/FTP-SERVER/sitebot/
}
what does ps list return?
probably should be more like set ps [exec pslist ioFTPD> nul(null?)]