home *** CD-ROM | disk | FTP | other *** search
- setactivity(Downloading Files)
-
- *pickprot
- display (display\dnPROTS1)
- MenuAsk (&3&Which transfer protocol would you like to use?&12&: &15&*)
- if (%RESP%)=(Q) then goto (aborted)
- len(%RESP%)
- notif (%ARESP%)=(1) then goto (Pprob) ;no batch protocols allowed...
- seek(protocol\%RESP%-Ad.BT)
- iftrue (goto (Pok))
-
- *pprob
- loadsub(control\macros\badsel.ctl)
- goto (pickprot)
-
- *Pok
- setequal(r=%RESP%)
- setequal(x=%MSGATTNAME%)
- size(%ATTPAT%%var%x)
- ttime(%ARESP%)
- cmpval(%TTIM%,/:LEFT/)
- if (%ARESP%)=(No) then goto (notenuftime)
- say(&11&)
- say(We're ready to send the file. Please start receiving now.)
- fixfile(protocol\%var%r-ad.bt,protocol\%var%r-ad.bat)
- exec(protocol\%var%r-ad.BAT│)
- kill(protocol\%var%r-ad.bat)
-
- *success
- notif (%ARESP%)=(0) then goto (aborted)
- log(--,Attach downloaded (%var%x))
- inpline(varr.%NODE%,1) ;restore var :r
- setequal(r=%ARESP%)
- display(display\attsucc1)
- Return
-
- *notenuftime
- display(display\NODLTIME)
- inpline(varr.%NODE%,1)
- setequal(r=%ARESP%)
- Return
-
- *aborted
- log(--,Attach download aborted (%var%x))
- setequal(x=)
- flushout
- inpline(varr.%NODE%,1)
- setequal(r=%ARESP%)
- display(display\attabt1)
- Return
-