home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
bre2adep.zip
/
bre2ad.cmd
next >
Wrap
OS/2 REXX Batch file
|
1995-04-12
|
1KB
|
37 lines
/*Converts a fido style BRE file attach to an Adept crash file. */
/* By Richard W. Hawley, Erasmus BBS 1-203-666-5113, 1:142/113 */
/* Edited by Steve Mohacey, Mona Lisa Overdrive BBS 1-804-498-8527, 1:275/164 */
do i = 1 to 5
infile = i'.msg'
a = charin(infile,73,0)
filetosend = "^"charin(infile,,50) /*I changed this so it would pick up on the FULL length of the file */
/* ^^ */
b = charin(infile,203,0) /* I changed this to pick up on the "/" */
node = charin(infile,,2)
/* ^ this is for the number of places in the 'NODE' listing */
if node = "/28"
then node = ".28"
/* else */
/* if node = "/212" */
/* then node = ".212" */
/* if node = "/477" */
/* then node = ".477" */
if filetosend <> ''
then do
c = lineout('e:\adept\mailer\outbound_mail\C.1.275.'node'.0.FIDONET',filetosend)
say 'Created e:\adept\mailer\outbound_mail\C.1.275.'node'.0.FIDONET'
d = lineout(infile) /* Closes the file */
say 'Unlinking Fido file attach 'i'.MSG'
del infile
end
end /* do loop */
exit