home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 3 Comm
/
03-Comm.zip
/
lwscrpts.zip
/
OS2SWQUL.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-08-26
|
2KB
|
71 lines
/* LiveWire Offline OS2Shareware BBS REXX Script File OS2SWOFL.CMD */
/* Set timeout */
SetLW(TimeOut,120);
/* Set inter-character pacing to 40ms */
SetLW(Pacing,40);
/* Set emulation and toggles */
SetLW(Emulation,1);
SetLW(Echo,0);
SetLW(Linefeeds,0);
SetLW(XonXoff,0);
SetLW(BSIsDel,1);
Username = "^H^H^H^H^H^H^HKenn Lynch" /* your first and last name */
Password = "^H^H^H^HPASSWORD" /* Your password here */
Repfile = "e:\download\os2share.rep";
SendLW("^M");
rem
Do forever
ret=FindLW("wait 20 seconds",
,"your name:",
,"[Y,n]?",
,"Password:",
,"ss ENTER to continue");
select
when ret="wait 20 seconds" then SendLW("^[") ;
when ret="your name:" then SendLW(Username||"^M") ;
when ret="[Y,n]? " then SendLW("Y^M") ;
when ret="Password:" then SendLW(Password||"^M") ;
when ret="ss ENTER to continue " then Leave ;
otherwise
/* The only thing that usually will bring you here is */
/* a timeout. What you do here is up to you. I just */
/* panic myself. (this DO was borrowed from JDBP) */
Say "SCRIPT FAILED (prompts changed?)!!!! prompt was " ret;
end
end
SendLW("^M");
ret=FindLW("mail? [Y,n]");
DelayLW(100);
SendLW("nnOU^M");
SendFilesLW("Z",Repfile);
/* I had problems using the /g (goodbye after dl) method. Could not find a
sucessful string to catch in the countdown. I think there are ANSI cursor
positioning characters in the countdown numbers. I hope the abrupt hangup
doesnt cause any odd status on Petes Board?
After download, hangup, del prior os2new.txt, unzip latest os2new.txt */
SendLw("^M");
ret=FindLW("Select");
DelayLW(100);
SendLW("G^M");
HangUpLW();
Exit