home *** CD-ROM | disk | FTP | other *** search
- DefPause($7$&0&[Send more text?]$0$&3& (&11&S&3&)top, (&11&N&3&)onstop or (&11&C&3&)ontinue?&12&: &7&)
- DefPif(s:stop,n:nonstop)
-
- *sv
- Display(display\VIEWZ)
- Say(&3&Please enter the name of the file to view&12&: &14&( )&15&*)
- Back(13)
- MenuAsk%nocr%%CRON%%LEN12%(*)
- if (%RESP%)=(<CR>) then goto (ret)
- AddDef(.%DEFEXT%)
- SeekFall(%RESP%)
- If (%ARESP%)=(INVALID) Then goto (invfn)
- if (%ARESP%)=(No) then goto (nothere)
- If (%ARESP%)=(NOT ENOUGH) Then goto (notenuf)
- SelFarea(%ARESP%)
- Kill(ZipInfo.txt)
- Say(&CR&&CR&&15&Reading the archive file, Please Wait!)
- setequal(e=%RESP%)
- seek(zipview.bat)
- ifnottrue(goto (intview))
- Exec(ZipView.bat %FILPATH%%var%e)
- *stview
- Seek(zipinfo.txt)
- IfNotTrue (goto (cont))
- inpopen(zipinfo.txt)
- do
- inpread
- get (%ARESP%,1,7)
- notif (%ARESP%)=() then if (%ARESP%)=( Length) then loadmem (control\zipview.ctl)
- eofloop
-
- *odisp
- inpclose
- view (zipinfo.txt)
- goto (cont)
-
- *cont
- linefeed(1)
- Enter
- SelFarea(/:LASTDOWN/)
- Return
-
- *badsel
- LoadSub(control\macros\badsel.ctl)
- Return
-
- *invfn
- Display(Display\INVALID)
- FlushOut
- SelFarea(/:LASTDOWN/)
- Enter
- Return
-
- *nothere
- Display(display\notfnd)
- SelFarea(/:LASTDOWN/)
- Return
-
- *Notenuf
- Say(&CR&)
- Display (display\fbadsel)
- SelFarea(/:LASTDOWN/)
- Return
- *invfn
- Display(Display\INVALID)
- flushout
- selfarea(/:LASTDOWN/)
- Enter
- goto (fname)
- *notenuf
- Display (Display\fbadsec)
- selfarea(/:LASTDOWN/)
- return
- *NotHere
- Display(Display\notfnd)
- goto (fname)
-
- *ret
- linefeed(1)
- return
- *intview
- len(%var%e)
- upcase(e)
- addvar(%aresp%+-2=f)
- get(&e,%var%f,3)
- if (%aresp%)=(ZIP) then goto (ZIP)
- exec(av %FILPATH%%var%e >zipinfo.txt,)
- view(zipinfo.txt)
- goto (cont)
-
- *zip
- exec(pkzip -v %FILPATH%%var%e >zipinfo.txt,)
- goto (stview)
-