home *** CD-ROM | disk | FTP | other *** search
- Say(&14&Calculating free storage space...*)
- Zap(varr.%NODE%,%var%r)
- ClearMem
- FreeSpace(%CDRIVE%:)
- setequal(l=%aresp%)
- CmpVal(%ARESP%,%MINSPACE%)
- IfTrue (Goto (notenufs))
- eline(38)
-
- *pickprot
- Display (display\upPROTS1)
- MenuAsk (&3&Which transfer protocol would you like to use?&12&: &15&*)
- If (%RESP%)=(Q) Then Return
- Len(%RESP%)
- NotIf (%ARESP%)=(1) Then Goto (Pprob)
- Seek(protocol\%RESP%-AU.BT)
- IfTrue (Goto (Pok))
-
- *pprob
- loadsub(control\macros\badsel.ctl)
- Goto (pickprot)
-
- *Pok
- addcomma(%var%l)
- Say(&CR&&11&%ARESP% &15&bytes free.)
- SetEqual(r=%RESP%)
- cMenuAsk%cron% (&CR&&3&Please enter the &11&name &3&of the file to attach&12&:&15& *)
- If (%RESP%)=(<CR>) Then Return
- SetEqual(x=%RESP%)
- Seek(%ATTPAT%%var%x)
- IfTrue (Goto (alreadyhere))
- Say(&CR&&11&We're ready to receive the file. Please start sending now.)
- If (%BAUD%)=(LOCAL) Then Goto (locul)
- FixFile(protocol\%var%r-au.bt,protocol\%var%r-au.bat)
- Exec(protocol\%var%r-au.BAT│)
- Kill(protocol\%var%r-au.bat)
- Goto (success)
-
- *locul
- MenuAsk (&3&Please enter the &10&path&3& for this file&12&: &15&*)
- fCopy(%RESP%\%var%x,%ATTPAT%%var%x)
- Goto (success)
-
- *success
- NotIf (%ARESP%)=(0) Then Goto (aborted)
- Log(--,Attach uploaded (%var%x))
- Display(display\attsucc)
- return
-
- *notenufs
- display(display\nospce)
- Return
-
- *aborted
- SetEqual(x=)
- FlushOut
- Log(--,Attach upload aborted (%var%x))
- Display(display\attabt)
- Return
-
- *alreadyhere
- Display (display\HERENOW)
- Goto (pok)
-