home *** CD-ROM | disk | FTP | other *** search
-
- :SETUP
- setlocal
- unalias *
- echo off
- alias spt scrput
- alias srn screen
- alias clswhbl cls whi on bla
- alias clsbluwh cls blu on whi
- alias db drawbox
- set ART=1
- set CF=0
- set CE=0
- set ND=%_CWD
- set CDR=` Path: `%_CWD
- set FT=%@PATH[%@SEARCH[4MICA.BTM]]
-
- :BEGIN
- clsbluwh
- db 7 18 15 58 1 bri whi on blu fill blu sha
- spt 8 19 bri blu on cya `▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄`
- spt 9 19 bri blu on bla `█ █`
- spt 9 24 bri yel on blu `∙ 4MICA FILE CONTROL SHELL ∙`
- spt 10 19 bri blu on cya `▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀`
- spt 11 19 bri whi on blu ` version 2.60 - June 25, 1992 `
- spt 12 19 bri whi on blu ` Registration is only $9.95 `
- spt 13 19 bri whi on blu ` Fill out and print REGISTER.ME `
- spt 14 19 bri whi on blu ` - TODAY - `
- spt 18 9 bri whi on blu ` ┌────┐┌─┐┌─┐┌────┐┌────┐┌────┐┌─┬─┬─┐┌────┐┌────┐┌────┐ ┌─┐`
- spt 19 9 bri whi on blu ` │ ─┤│ └┘ ││ ≡≡ ││≡≡ ││ ──┤│ │ │ ││ ≡≡ ││≡≡ ││ ──┤ │ │`
- spt 20 9 bri whi on blu ` ├─ ││ ┌┐ ││ ┌┐ ││ ┌┐││ ──┤│ ││ ┌┐ ││ ┌┐││ ──┤ ├─┤`
- spt 21 9 bri whi on blu ` └────┘└─┘└─┘└─┘└─┘└──┘└┘└────┘└──┴──┘└─┘└─┘└──┘└┘└────┘ └─┘`
- DELAY 3
- clsbluwh
-
- :START
- cls blu on whi
- spt 24 8 whi on blu ` copyright 1991, 1992 Geoff Taylor & CelestialWare, All Rights Reserved `
- db 1 24 5 55 1 whi on blu shadow
- set ULR=18
- set ULC=21
- set LRR=20
- gosub PUT
- spt 2 25 cya on bla `▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄`
- spt 3 25 cya on bla `█ █`
- spt 3 26 bri whi on blu `∙ 4MICA FILE CONTROL SHELL ∙`
- spt 4 25 cya on bla `▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀`
- set FND=%FT%4mica.ndx
- set OPT=
- set OPT=%@SELECT[%fnd,8,19,17,60]
- set OPT=%@SUBSTR[%opt,1,3]
- iff "%OPT"=="" then
- goto EXIT
- elseiff "%OPT"=="Cre" then
- goto SCR
- elseiff "%OPT"=="Con" then
- goto SCN
- elseiff "%OPT"=="Inf" then
- goto INFO
- elseiff "%OPT"=="Vie" then
- goto SVW
- elseiff "%OPT"=="Min" then
- gosub SMN
- goto START
- elseiff "%OPT"=="Ext" then
- goto SXT
- endiff
- goto START
-
- :PUT
- set LRC=%@LEN[%CDR]
- set LRC=%@EVAL[%LRC+%ULC+1]
- db %ULR %ULC %LRR %LRC 1 bri whi on blu fill blu sha
- spt %@EVAL[%ULR+1] %@EVAL[%ULC+1] bri whi on blu %CDR
- return
-
- :INFO
- cls bri whi on bla
- text
-
- 4MICA version 2.60
- Geoff Taylor
- CelestialWare
- 3549 Laurel View Lane
- Birmingham, AL 35216
- (205)/823-0444
-
- 4MICA is released into SHAREWARE by Geoff Taylor of CelestialWare.
- 4MICA v2.60 is in every way I can see, bug free. At any rate, PLEASE
- take precautions against data loss. I can not be held responsible for
- any such losses that might occur but, most likely this will not happen.
-
- 4MICA IS NOT FREE ! ! ! You are hereby licensed to use this product
- for a trial period of thirty (30) days free of charge. If you decide
- that you would like to continue using 4MICA, please complete the
- registration form (REGISTER.ME) and return it with the required
- registration fee ($9.95 + S/H) enclosed.
-
- 4DOS is a registered trademark of J.P. Software
- ARJ is a registered trademarks of Robert K. Jung
- LHA is a registered trademark of Haruyasu Yoshizaki
- PKZIP is a registered trademark of PKWARE
-
- endtext
- pause Hit any Key...
- goto START
-
- :SCN
- cls blu on whi
- set ULR=11
- set ULC=4
- set LRR=13
- gosub PUT
- set FND=%FT%convert.ndx
- set OPT=
- set OPT=%@SELECT[%fnd,2,2,8,21,Convert Archieve]
- set OPT=%@SUBSTR[%opt,1,2]
- if exist zip del /q zip
- if exist arj del /q arj
- if exist lha del /q lha
- iff "%OPT"=="" then
- goto START
- elseiff "%OPT"=="ZI" then
- set art=1
- if exist *.zip goto SCN1
- if exist *.arj goto SCN1
- set nae=ZIP OR ARJ FILES
- gosub MSG
- goto SCN
- elseiff "%OPT"=="AR" then
- set art=0
- if exist *.arj goto SCN1
- if exist *.lzh goto SCN1
- set nae=ARJ OR LHA FILES
- gosub MSG
- goto SCN
- elseiff "%OPT"=="LH" then
- set art=2
- if exist *.lzh goto SCN1
- if exist *.zip goto SCN1
- set nae=LHA OR ZIP FILES
- gosub MSG
- goto SCN
- elseiff "%OPT"=="Mi" then
- gosub SMN
- goto SCN
- elseiff "%OPT"=="Ma" then
- goto START
- elseiff "%OPT"=="Ex" then
- goto EXIT
- endiff
- goto SCN
-
- :SCN1
- md 4mtemp
- set nm=0
- set ln=0
- if "%art"=="0" select dir /b [*.arj;*.lzh] >> dearc.tmp
- if "%art"=="1" select dir /b [*.zip;*.arj] >> dearc.tmp
- if "%art"=="2" select dir /b [*.lzh;*.zip] >> dearc.tmp
- if exist dearc.tmp goto PRNT
- rd 4mtemp
- goto SCN
-
- :PRNT
- set ln=%@LINE[dearc.tmp,%nm]
- if "%ln"=="**EOF**" goto FIN
- set fs=%@FILESIZE[%ln,b]
- set fln=%ln
- set ln=%@NAME[%ln]
- if "%art"=="0" goto RJ
- if "%art"=="2" goto RL
-
- if exist %ln%.lzh goto FEXT
- if "%@EXT[%fln]"=="zip" pkunzip %ln %_CWD%\4mtemp
- if "%@EXT[%fln]"=="arj" arj x -y+ %ln %_CWD%\4mtemp
- echo.
- pushd
- cd 4mtemp
- lha a %ln *.*
- popd
- copy /q 4mtemp\*.lzh %_cwd
- if "%@EXT[%fln]"=="zip" del /q %ln%.zip
- if "%@EXT[%fln]"=="arj" del /q %ln%.arj
- goto ART1
-
- :RJ
- if exist %ln%.zip goto FEXT
- if "%@EXT[%fln]"=="arj" arj x -y+ %ln %_CWD%\4mtemp
- if "%@EXT[%fln]"=="lzh" lha x %ln%.lzh %_CWD%\4mtemp\
- echo.
- pushd
- cd 4mtemp
- pkzip -wHS %ln *.*
- popd
- copy /q 4mtemp\*.zip %_cwd
- if "%@EXT[%fln]"=="arj" del /q %ln%.arj
- if "%@EXT[%fln]"=="lzh" del /q %ln%.lzh
- goto ART1
-
- :RL
- if exist %ln%.arj goto FEXT
- if "%@EXT[%fln]"=="lzh" lha x %ln %_CWD%\4mtemp\
- if "%@EXT[%fln]"=="zip" pkunzip %ln %_CWD%\4mtemp
- echo.
- pushd
- cd 4mtemp
- arj a -y+ -jm1 -jt %ln *.*
- popd
- copy /q 4mtemp\*.arj %_cwd
- if "%@EXT[%fln]"=="lzh" del /q %ln%.lzh
- if "%@EXT[%fln]"=="zip" del /q %ln%.zip
-
- :ART1
- iff "%art"=="0" then set fs1=%@FILESIZE[%ln%.zip,b]
- elseiff "%art"=="1" then set fs1=%@FILESIZE[%ln%.lzh,b]
- elseiff "%art"=="2" then set fs1=%@FILESIZE[%ln%.arj,b]
- endiff
- echo.
- echo Original Size - %fs
- echo New Size - %fs1
- echo Savings Size - %@EVAL[%fs-%fs1]
- *del /qy 4mtemp\*.*
- set nm=%@EVAL[%nm+1]
- set ts=%@EVAL[%ts+%fs]
- set ts1=%@EVAL[%ts1+%fs1]
- goto PRNT
-
- :FIN
- rd 4mtemp
- del /q dearc.tmp
- echo.
- echo Total Files - %nm
- echo Total Size - %ts
- echo New Size - %ts1
- echo Savings Size - %@EVAL[%ts-%ts1]
- echo.
- set fs=
- set fs1=
- set ts=
- set ts1=
- pause Hit any key...
- goto SCN
-
- :FEXT
- echo File cannot be converted! It already exists!
- rd 4mtemp
- del /q dearc.tmp
- pause Hit any key...
- goto SCN
-
- :SVW
- cls blu on whi
- set ULR=9
- set ULC=4
- set LRR=11
- gosub PUT
- set FND=%FT%view.ndx
- set OPT=
- set OPT=%@SELECT[%FND,2,2,7,25,View File Archieve]
- set OPT=%@SUBSTR[%OPT,1,2]
- iff "%OPT"=="" then
- goto START
- elseiff "%OPT"=="Se" then
- if exist *.arj .or. exist *.zip .or. exist .lzh. goto CNT
- gosub NOARC
- goto SVW
-
- :CNT
- set pa=
- color bri whi on bla
- dir /k/m *.arj;*.lzh;*.zip > vwfiles.tmp
- set PA=%@SELECT[vwfiles.tmp,2,2,7,42,Select File to View]
- *del /q vwfiles.tmp
- set PA=%@SUBSTR[%PA,0,12]
- set EXT=%@EXT[%PA]
- cls
- iff "%EXT"=="zip" then
- pkunzip -v %PA
- elseiff "%EXT"=="arj" then
- arj l %PA
- elseiff "%EXT"=="lzh" then
- lha l %PA
- endiff
- if "%pa"==""goto SVW
- pause Hit any key...
- goto SVW
- elseiff "%OPT"=="Mi" then
- gosub SMN
- goto SVW
- elseiff "%OPT"=="Ma" then
- goto START
- elseiff "%OPT"=="Ex" then
- goto EXIT
- endiff
- goto SVW
-
- :SCR
- cls blu on whi
- db 10 3 13 36 1 bri whi on blu fill blu sha
- spt 11 4 bri whi on blu %CDR
- spt 12 5 bri whi on blu `Archiver: `
- if "%CF"=="0" spt 12 15 bri whi on blu `ARJ w/ verify ON`
- if "%CF"=="1" spt 12 15 bri whi on blu `ARJ w/ verify OFF`
- if "%CF"=="2" spt 12 15 bri whi on blu `PKZIP`
- if "%CF"=="3" spt 12 15 bri whi on blu `LHA`
- set FND=%FT%create.ndx
- set OPT=
- set OPT=%@SELECT[%FND,2,2,8,26,Create File Archieve]
- set OPT=%@SUBSTR[%OPT,1,2]
- iff "%OPT"=="" then
- goto START
- elseiff "%OPT"=="Co" then
- color bri whi on blu
- db 2 1 5 35 1 bri whi on blu fill blu sha
- spt 2 1 bri whi on blu ┌─────── Create Archieve
- srn 4 3
- input Archieve filename: %%fn
- if "%FN"=="" goto SCR
- if "%CF"=="0" goto an
- if "%CF"=="1" goto af
- if "%CF"=="2" goto zn
- if "%CF"=="3" goto ln
- goto SCR
- elseiff "%OPT"=="Se" then
- set FND=%FT%select.ndx
- set OPT=
- set OPT=%@SELECT[%FND,2,2,8,22,Compression Formats]
- set FRM=%@SUBSTR[%OPT,1,1]
- set OPT=%@substr[%opt,13,1]
- if "%FRM"=="A" .and. "%OPT"=="n" set CF=0
- if "%FRM"=="A" .and. "%OPT"=="f" set CF=1
- if "%FRM"=="P" set CF=2
- if "%FRM"=="L" set CF=3
- goto SCR
- elseiff "%OPT"=="Mi" then
- gosub SMN
- goto SCR
- elseiff "%OPT"=="Ma" then
- goto START
- elseiff "%OPT"=="Ex" then
- goto EXIT
- endiff
- goto SCR
-
- :AN
- clswhbl
- select /d arj a -r -jf1 -jt %FN [*.*]
- pause Hit any key...
- goto SCR
-
- :AF
- clswhbl
- select /d arj a -r -jf1 %FN [*.*]
- pause Hit any key...
- goto SCR
-
- :ZN
- clswhbl
- select /d pkzip -P %FN [*.*]
- pause Hit any key...
- goto SCR
-
- :LN
- clswhbl
- select /d lha a %FN [*.*]
- pause Hit any key...
- goto SCR
-
- :SMN
- cls blu on whi
- set ULR=13
- set ULC=4
- set LRR=15
- set CDR=` Path: `%_CWD
- gosub PUT
- set FND=%FT%mini.ndx
- set OPT=
- set OPT=%@SELECT[%FND,2,2,12,21,Mini-DOS]
- set OPT=%@SUBSTR[%OPT,1,3]
- iff "%OPT"=="" then
- return
- elseiff "%OPT"=="Cha" then
- gosub SFL
- if "%SFN" NE "" cd %SFN
- goto SMN
- elseiff "%OPT"=="Vie" then
- cls bri whi on bla
- dir /2/p
- pause Hit any key...
- goto SMN
- elseiff "%OPT"=="Got" then
- db 2 1 5 31 1 bri whi on blu fill blu sha
- color bri whi on blu
- srn 2 1 ┌─────── Goto File
- srn 4 3
- input Filename: %%PA
- if "%PA"=="" goto SMN
- pushd %_CWP
- cd \
- alias gotit `popd^srn 3 3 File Not Found ! ! !^srn 4 3^pause Hit any key...`
- global /q if exist %PA alias gotit cd%_CWP
- gotit
- unalias gotit
- popd *
- goto SMN
- elseiff "%OPT"=="Mov" then
- gosub SFL
- if "%SFN"=="" goto SMN
- set PA=%SFN
- color bri whi on bla
- select /d move [*.*] %PA
- pause Hit any key...
- goto SMN
- elseiff "%OPT"=="Cop" then
- gosub SFL
- if "%SFN"=="" goto SMN
- set PA=%SFN
- color bri whi on bla
- select /d copy [*.*] %PA
- pause Hit any key...
- goto SMN
- elseiff "%OPT"=="Ren" then
- dir /k/m > rename.tmp
- set PA=%@SELECT[rename.tmp,2,2,9,42,Select File to Rename]
- set PA=%@SUBSTR[%PA,0,12]
- del /q rename.tmp
- if "%PA"=="" goto SMN
- db 2 1 5 35 1 bri whi on blu fill blu sha
- color bri whi on blu
- srn 2 1 ┌──── Renaming %@UPPER[%PA]
- srn 4 3
- input New filename: %%PA2
- if "%PA2"=="" goto SMN
- echo.
- if exist %PA2 goto EXIST
- cls
- ren %PA %PA2
- echo.
- pause Hit any key...
- goto SMN
-
- :EXIST
- srn 3 3 %PA2 already exists!
- srn 4 3
- pause Hit any key...
- goto SMN
- elseiff "%OPT"=="Del" then
- color bri whi on bla
- select /d del [*.*]
- pause Hit any key...
- goto SMN
- endiff
- goto SMN
-
- :SXT
- cls blu on whi
- db 10 3 13 37 1 bri whi on blu fill blu sha
- spt 11 4 bri whi on blu %CDR
- spt 12 4 bri whi on blu ` Destination: `%ND
- set FND=%FT%extract.ndx
- set OPT=
- set OPT=%@SELECT[%FND,2,2,9,27,Extract File Archieve]
- set OPT=%@SUBSTR[%OPT,1,3]
- iff "%OPT"=="Dec" then
- if exist *.arj .or. exist *.zip goto CONT
- gosub NOARC
- goto SXT
-
- :CONT
- set pa=
- color bri whi on bla
- dir /k/m *.arj;*.lzh;*.zip > vwfiles.tmp
- set PA=%@SELECT[vwfiles.tmp,2,2,7,42,Select Archive to Decompile]
- del /q vwfiles.tmp
- set PA=%@SUBSTR[%PA,0,12]
- set EXT=%@EXT[%PA]
- cls
- iff "%EXT"=="zip" then
- pkunzip %PA %ND
- if "%?"=="1" echo %@UPPER[%PA] is password protected!
- if "%?"=="2" echo %@UPPER[%PA] isn't a PKZIP file!
- elseiff "%EXT"=="arj" then
- arj x %PA %ND
- if "%?"=="1" echo %@UPPER[%PA] is password protected!
- if "%?"=="2" echo %@UPPER[%PA] isn't an ARJ file!
- elseiff "%EXT"=="lzh" then
- lha x %PA %ND%\
- if "%?"=="1" echo %@UPPER[%PA] is password protected!
- if "%?"=="2" echo %@UPPER[%PA] isn't a LHA file!
- endiff
- if "%pa"=="" goto SXT
- pause Hit any key...
- goto SXT
- elseiff "%OPT"=="" then
- goto START
- elseiff "%OPT"=="Set" then
- gosub SFL
- if "%SFN"=="" goto SXT
- set ND=%SFN
- goto SXT
- elseiff "%OPT"=="Min" then
- gosub SMN
- goto SXT
- elseiff "%OPT"=="Exi" then
- goto EXIT
- endiff
- goto SXT
-
- :SFL
- if exist c:\dstpth.tmp goto EXST
- pushd^cd \
- (global /iq echo %_CWD) >> c:\dstpth.tmp
- popd
-
- :EXST
- set SFN=
- set SFN=%@SELECT[c:\dstpth.tmp,1,3,7,35,Destination Path]
- return
-
- :NOARC
- set nae=ARCHIVES
-
- :MSG
- db 2 3 5 29 1 bri whi on blu fill blu sha
- spt 3 4 bri whi on blu NO %NAE EXIST
- spt 4 9 bri whi on blu IN THIS PATH !!
- srn 8 2
- pause Hit any key...
- return
-
- :EXIT
- endlocal
- if exist c:\dstpth.tmp del /q c:\dstpth.tmp
- cls bri whi on bla
- cancel
-