home *** CD-ROM | disk | FTP | other *** search
- *EXLP
- Say(&CR&&7& Length Method Size Ratio Date Time CRC-32 Attr Name&11&)
- InpRead
- Say(──────────────────────────────────────────────────────────────────&15&)
-
- setequal(l=0)
- setequal(p=2)
- resetpause
-
- DO
- fEndIf(eloop)
- InpRead
- SetEqual(h=%ARESP%)
- Get (%ARESP%,1,3)
- If (%ARESP%)=( --) then goto (elp)
- inc(l)
- Say(%var%h)
- inc(p)
- if (&p)=(/screenlen) then jump (pause)
- LOOP
-
- *ELP
- InpRead
- Say(&11&──────────────────────────────────────────────────────────────────)
- get (%aresp%,1,50)
- Say(&12&%ARESP%)
- InpClose
- say (&CR&&14& %var%l File(s) in archive)
-
- *ELOOP
- MenuAsk %MIN1%%LEN1% (&CR&&3&Would you like to &11&(&7&R&11&)ead Textfile, (&7&D&11&)ownload File, (&7&L)&11&ist, (&7&Q&11&)uit?&14& *)
- BigIf (d:download,r:read,q:quit,l:list)
- Goto (eloop)
-
- *LIST
- InpClose
- InpOpen(zipinfo.txt)
- linefeed(1)
-
- DO
- InpRead
- Get (%ARESP%,1,7)
- NotIf (%ARESP%)=() then if (%ARESP%)=( Length) then goto (exlp)
- EofLoop
-
- *QUIT
- InpClose
- SelFArea (/:lastdown/)
- Return
-
- *READ
- Say(&CR&&3&Please enter the name of the file to read&12&: &14&( )&15&*)
- Back(13)
- MenuAsk%CRON%%LEN12%(*)
- if (%RESP%)=(<CR>) then goto (eloop)
- Say(&CR&&11&Retriving &7&%RESP%&11&, Please Wait!&7&)
- Exec(md zvtemp>nul,) ;create temporary dir
- Zap(yes,Yes)
- Exec(del zvtemp <yes >nul,)
- Exec(pkunzip %FILPATH%%var%e %RESP% zvtemp\ >nul,)
- View (zvtemp\%RESP%)
- Exec(del zvtemp <yes >nul,)
- Enter
- Goto (eloop)
-
- *DOWNLOAD
- Say(&3&&CR&Please enter the name of the file to download&12&: &14&( )&15&*)
- Back(13)
- MenuAsk%CRON%%LEN12%(*)
- if (%RESP%)=(<CR>) then goto (eloop)
- Say(&CR&&11&Retriving &7&%RESP%&11&, Please Wait!&7&)
- Exec(md zvtemp >nul,) ;create temporary dir
- Zap(yes,Yes)
- Exec(del zvtemp <yes,)
- Exec(pkunzip %FILPATH%%var%e %RESP% zvtemp\ >nul,)
- SetEqual(d=%RESP%)
- Seek(zvtemp\%RESP%)
- IfNotTrue (goto (eloop))
-
- *PICKP
- Display (Display\DN-PROTS)
- MenuAsk %MIN1% (&3&Which transfer protocol would you like to use?&11&(or Q to Quit)&12&: &15&*)
- Find(%RESP%,\) ;make sure they didnt stick a backslash in there
- NotIf (%ARESP%)=(0) Then Goto (eloop)
- BigIf(q:eloop)
- SetEqual(b=%RESP%)
- Seek(protocol\%var%b-VD.BT) ;check to see If protocol exists..
- IfNotTrue(Goto (pickp))
- Len(%var%b)
- NotIf (%ARESP%)=(1) then goto (nobat)
- Say(&CR&&3& Would you like to download this file? &9&[ ]&14&*)
- Back(4)
- YesNoAsk(*)
- If (%RESP%)=(No) Then Goto (eloop)
- Say(&CR&&11&We're sending the file you requested. Please get ready to receive it now.)
- If (%LOCAL%)=(TRUE) Then Goto (eloop)
- FixFile(protocol\%var%b-vd.bt,protocol\%var%b-vd.bat)
- InitClock
- Exec(protocol\%var%b-vd.BAT│)
- Kill(protocol\%var%b-vd.bat)
- If (%LOCAL%)=(FALSE) Then toglocal
- NotIf (%ARESP%)=(0) Then Goto (nsc)
- XferTime
- SetEqual(e=%ARESP%)
- Size(zvtemp\%var%d)
- MultVar(%XMIN%*60=o)
- DivVar(%ARESP%/%var%o=g) ;calculate CPS rate
- CnvtK(%ARESP%)
- AddVar(%ARESP%+/:KDOWN/=o)
- SetEqual(/KDOWN=%var%o)
- Say(%BEEP%*)
- Log(--,%var%d Downloaded from Zip:%var%e.)
- Log(--,Rate: %var%g CPS)
- AppendTo(logs\DOWNLOAD.%NODE%,%var%d downloaded by %NAME% at %TIME% on %DATE%.)
- SetEqual(a=/:DOWNLOADS/)
- inc(a)
- SetEqual(/DOWNLOADS=%var%a)
- If (%LOCAL%)=(TRUE) Then toglocal
- Display (Display\SUCCESS)
- Exec(del zvtemp <yes)
- Enter
- Goto (eloop)
-
- *NOBAT
- Say(&CR&&15&No batch protocols allowed for transfering this file.&CR&)
- Goto (pickp)
-
- *nsc
- toglocal
- goto (eloop)
-
- *pause
- setequal(p=1)
- pauseprompt
- if (%ARESP%)=(STOP) then goto (elp)
- ret
-