home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / ircdo143.zip / IRC.CMD < prev    next >
OS/2 REXX Batch file  |  1996-08-28  |  657b  |  26 lines

  1. @echo off
  2. rem *** Command file to run the IRCDOOR/2 from a BBS
  3. rem *** usage: irc.cmd port node [...]
  4. rem *** where: port is a hot handle to open OS/2 com port,
  5. rem ***        node is a node number to run IRC for,
  6. rem ***        [...] other parameters for the IRCDOOR/2
  7. rem ***
  8. rem *** use irc.cmd without parameters for local mode
  9. rem ***
  10.  
  11. cd \max\doors\irc
  12. if "%1" == "0" goto local
  13. if "%1" == "" goto local
  14. if "%2" == "0" goto local
  15. if "%2" == "" goto local
  16.  
  17. :remote
  18. ircdoor -p%1 -dc:\max\node%2\door.sys %3 %4 %5 %6 %7 %8 %9
  19. goto done
  20.  
  21. :local
  22. ircdoor -l %3 %4 %5 %6 %7 %8 %9
  23.  
  24. :done
  25. if exist nodeinfo.%2 erase nodeinfo.%2
  26. cd \max