home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
gscr20.zip
/
joinall.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-06-16
|
857b
|
41 lines
/* channel greeting */
Parse Arg Win WinName OurNick nick
text = 'Hi '||nick||'!'
font = 'mini.flf'
width = 40
CMD = "C:\OS2\CMD.EXE"
outputfile = 'input.txt'
address cmd 'erase 'outputfile
lineout(outputfile, text)
lineout(outputfile)
address cmd 'figlet.exe -w '||width||' -c -f '||font||' < '||outputfile||' | rxqueue'
lines = queued()
do i = 1 to lines
parse pull something
if left(something, 1) = ' ' then
something = '.'||right(something, length(something)-1)
something = ''||something
ircrexxcommand('/notice '||nick||' '||something, '')
end
time=time()
date=date()
lines=2
line.1='And Welcome to 'winname'!'
line.2='It is now 'time' EST on 'date
do i = 1 to lines
l=trunc((width-length(line.i))/2)
do j=1 to l
line.i=' '||line.i
end
ircrexxcommand('/notice 'nick' .'line.i, '')
end