home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
4
/
4arc131.zip
/
4ARC.BTM
next >
Wrap
Text File
|
1992-09-08
|
56KB
|
2,008 lines
echo off
setlocal
setdos /i-history
unalias *
alias db drawbox
alias sp scrput
set MB=blu
set MF=%MB
set BF=gre
set BB=blu
set WF=whi
set WB=blu
set TF=bla
set TB=cya
set HF=bri yel
set HB=%BB
set SF=bri yel
set SB=blu
set SC=whi
set CB=cya
set COLORDIR= arj zip lzh lha zoo arc:%SF;DIRS:%WF
set AR=
set AS=
set AS1=
set AS2=
set VC=
set VI=
set $T=%@UPPER[E:\$4TEMP]
set DST=%_CWDS
set CT=
set ST=
set HP=%@PATH[%@SEARCH[4ARC.BTM]]
if exist %HP%4arc.cfg set /r %HP%4arc.cfg
cls %MF on %MB
sp 5 20 bri whi on %_BG ╓─┐╓─┐ ╓────┐ ╓─┐╓─┐ ╓───┐ ╓────┐
sp 18 22 %HF on %WB ║ │ ║ │ ║ │ ║ │ ║ └┐ ║ └─╜ │
sp 19 22 %HF on %WB ╙─┘ ╙─┘ ╙─┘ ╙─┘ ╙──┘ ╙─────┘
sp 17 18 %HF on %WB ╙───╖ │ ║ ┌──╖ │ ║ ┌─╖ ┌┘ ║ │ ╓─┐
sp 6 20 bri whi on %_BG ║ └╜┌┘ ║ ┌─╖│ ║ └╢ │ ║ ╓─┴┐ ║ ┌─╖│
sp 16 18 %HF on %WB ║ └─╜ │ ║ └──╜ │ ║ └──╜ │ ║ │ ╙─┘
sp 7 20 bri whi on %_BG ║ ┌╖└┐ ║ └─╜│ ║ ├╖ │ ║ ╙─ │ ║ └─╜│ Ware's
sp 15 18 %HF on %WB ║ │ ║ │ ║ ┌──╖ │ ║ ┌──╖ │ ║ ┌─╖ │
sp 8 20 bri whi on %_BG ╙─┘╙─┘ ╙────┘ ╙─┘╙─┘ ╙────┘ ╙────┘
sp 14 18 %HF on %WB ╓─┐ ╓─┐ ╓──────┐ ╓──────┐ ╓─────┐
sp 22 31 %WF on %WB Version 1.30
:DRIVES
pushd \
echo A: >%HP%alldrive.tmp
echo B: >>%HP%alldrive.tmp
if isdir c:\ echo C:\ >>%HP%alldrive.tmp
if isdir d:\ echo D:\ >>%HP%alldrive.tmp
if isdir e:\ echo E:\ >>%HP%alldrive.tmp
if isdir f:\ echo F:\ >>%HP%alldrive.tmp
if isdir g:\ echo G:\ >>%HP%alldrive.tmp
if isdir h:\ echo H:\ >>%HP%alldrive.tmp
if isdir i:\ echo I:\ >>%HP%alldrive.tmp
if isdir j:\ echo J:\ >>%HP%alldrive.tmp
if isdir k:\ echo K:\ >>%HP%alldrive.tmp
if isdir l:\ echo L:\ >>%HP%alldrive.tmp
if isdir m:\ echo M:\ >>%HP%alldrive.tmp
if isdir n:\ echo N:\ >>%HP%alldrive.tmp
if isdir o:\ echo O:\ >>%HP%alldrive.tmp
if isdir p:\ echo P:\ >>%HP%alldrive.tmp
if isdir q:\ echo Q:\ >>%HP%alldrive.tmp
if isdir r:\ echo R:\ >>%HP%alldrive.tmp
if isdir s:\ echo S:\ >>%HP%alldrive.tmp
if isdir t:\ echo T:\ >>%HP%alldrive.tmp
if isdir u:\ echo U:\ >>%HP%alldrive.tmp
if isdir v:\ echo V:\ >>%HP%alldrive.tmp
if isdir w:\ echo W:\ >>%HP%alldrive.tmp
if isdir x:\ echo X:\ >>%HP%alldrive.tmp
if isdir y:\ echo Y:\ >>%HP%alldrive.tmp
if isdir z:\ echo Z:\ >>%HP%alldrive.tmp
dir /SADBF c:\ d:\ e:\ f:\ g:\ h:\ i:\ j:\ k:\ l:\ m:\ n:\ o:\ p:\ q:\ r:\ s:\ t:\ u:\ v:\ w:\ x:\ y:\ z:\ >>%HP%alldrive.tmp
if "%NDR"=="Y" return
copy /q %HP%alldrive.tmp %HP%alldrive.sav
gosub frc
popd
:BEGIN
set MF=%MB
set FF=
set SC=white
set CB=cyan
set KF= bri yel
if "%COL"=="mon" set SC=bri whi
if "%COL"=="mon" set CB=whi
if "%COL"=="mon" set KF=bri whi
cls %MF on %MB
db 0 22 2 50 2 %BF on %BB fill %WB sha
db 0 64 2 75 2 %BF on %BB fill %WB sha
db 18 2 21 76 1 %BF on %BB fill %WB sha
db 4 2 16 20 3 %BF on %BB fill %WB sha
db 4 22 16 45 3 %BF on %BB fill %WB sha
db 4 47 16 76 3 %BF on %BB fill %WB sha
sp 1 1 bri whi on %MB (C)opyright
sp 2 1 bri whi on %MB 1992-94 KONGOWare
sp 1 23 %TF on %TB 4ARC ARCHIV MANAGER V1.3
sp 1 65 %TF on %TB %_date
sp 4 4 %HF on %HB F2
sp 4 11 %HF on %HB M
sp 4 12 %BF on %BB ANAGER
sp 5 4 %WF on %WB Current Path
sp 6 4 %WF on %WB Destinationpath
sp 7 4 %WF on %WB View Directory
sp 8 4 %WF on %WB Copy File(s)
sp 9 4 %WF on %WB Move File(s)
sp 10 4 %WF on %WB Delete File(s)
sp 11 4 %WF on %WB Rename File
sp 12 4 %WF on %WB MD/RD Directory
sp 13 4 %WF on %WB Vscan File(s)
sp 14 4 %WF on %WB Shell to DOS
sp 15 4 %WF on %WB Config Info
sp 4 24 %HF on %HB F3
sp 4 35 %HF on %HB A
sp 4 36 %BF on %BB RCHIVER
sp 5 24 %WF on %WB Create Archive
sp 6 24 %WF on %WB Decompress Archive
sp 7 24 %WF on %WB Extract Archive
sp 8 24 %WF on %WB Convert Archive(s)
sp 9 24 %WF on %WB View Archive
sp 10 24 %WF on %WB Repair Archive
sp 11 24 %WF on %WB Make SFX
sp 12 24 %WF on %WB Comment Archive
sp 13 24 %WF on %WB Vscan Archive
sp 14 24 %WF on %WB PKlite Files
sp 15 24 %WF on %WB LZexe Files
sp 4 49 %HF on %HB F4
sp 4 60 %HF on %HB S
sp 4 61 %BF on %BB ETUP
sp 5 49 %WF on %WB Archiver
sp 18 34 %BF on %BB Messages
color %HF on %WB
if "%AR"=="PKZIP" sp 5 63 %SF on %SB PKZIP %G1
if "%AR"=="ARJ" sp 5 63 %SF on %SB ARJ %G2
if "%AR"=="LHA" sp 5 63 %SF on %SB LHA
if "%AR"=="PKPAK" sp 5 63 %SF on %SB PKPAK %G3
if "%AR"=="ZOO" sp 5 63 %SF on %SB ZOO
sp 6 48 %BF on %BB ────────────────────────────
sp 7 49 %WF on %WB Virscanner:
sp 8 48 %BF on %BB ────────────────────────────
sp 9 49 %WF on %WB TempDir:
sp 10 48 %BF on %BB ────────────────────────────
sp 11 49 %WF on %WB Destination:
sp 12 48 %BF on %BB ────────────────────────────
sp 13 49 %WF on %WB Editor
sp 14 48 %BF on %BB ────────────────────────────
sp 15 49 %WF on %WB Colors...
sp 7 61 %WF on %WB
if not "%VI"=="" sp 7 63 %SF on %SB %@UPPER[%@NAME[%VI].%@EXT[%VI]]
set DDT=%DST
if %@len[%DST] GT 12 set DDT=...%@substr[%DST,9,-9]
iff "%VC"=="F-PROT" then
sp 7 74 %SF on %SB %AS
elseiff "%VC"=="McAfee" then
sp 7 74 %SF on %SB %AS1
else sp 7 74 %SF on %SB %AS2
endiff
if not "%EDI"=="" sp 13 63 %SF on %SB %@UPPER[%@NAME[%EDI].%@EXT[%EDI]]
sp 9 63 %SF on %SB %@UPPER[%$T]
sp 11 63 %SF on %SB %@UPPER[%DDT]
sp 19 4 %MF on %WB
sp 20 4 %MF on %WB
sp 19 4 %WF on %WB Current Path: %@upper[%_CWDS]
sp 20 4 %WF on %WB Destinationpath: %@upper[%DST]
color %MF on %MB
sp 24 0 %MF on %MB
if "%CC"=="Y" goto SCOL
:START
sp 24 1 bla on %CB Help
sp 24 9 bla on %CB Manage
sp 24 17 bla on %CB Archiv
sp 24 25 bla on %CB Setup
sp 24 33 bla on %CB Save
sp 24 41 bla on %CB Vscan
sp 24 49 bla on %CB User
sp 24 57 bla on %CB Colors
sp 24 65 bla on %CB Shell
sp 24 74 bla on %CB Info
sp 24 0 %SC on bla 1
sp 24 7 %SC on bla 2
sp 24 15 %SC on bla 3
sp 24 23 %SC on bla 4
sp 24 31 %SC on bla 5
sp 24 39 %SC on bla 6
sp 24 47 %SC on bla 7
sp 24 55 %SC on bla 8
sp 24 63 %SC on bla 9
sp 24 71 %SC on bla 10
iff "%DP"=="Y" then
set DP=
goto SET
elseiff "%TP"=="Y" then
set TP=
goto SET
elseiff "%VP"=="N" then
set VP=
goto SVIR
endiff
:START2
set BP=%_CWDS
inkey /K"ACEHIMRSVUL+][alt-1][alt-2][alt-3][alt-e][alt-r][TAB][F1][F2][F3][F4][F5][F6][F7][F8][F9][F10]" %%win
iff "%WIN"=="" then
goto EXIT
elseiff %WIN==@18 then
%EDI
goto BEGIN
elseiff %WIN==@19 then
cls %WF on %WB
sp 10 25 %WF on %WB REREAD DIRECTORIES...
set NDR=Y
color %MF on %MB
gosub DRIVES
goto BEGIN
elseiff %WIN==@59 .or. "%WIN"=="H" then
goto HELP
elseiff %WIN==@60 .or. "%WIN"=="M" then
sp 24 0 %MF on %MB
goto MAN
elseiff %WIN==@61 .or. "%WIN"=="A" then
sp 24 0 %MF on %MB
goto ARC
elseiff "%WIN"=="@62" .or. "%WIN"=="S" then
sp 24 0 %MF on %MB
goto SET
elseiff %WIN==@63 .or. "%WIN"=="E" then
goto SAVE
elseiff %WIN==@64 .or. "%WIN"=="V" then
iff "%VI"=="" then
sp 17 24 bli %HF on %WB No Scanner selected
delay 1
sp 17 24 %MF on %MB
goto START2
elseiff "%VC"=="F-PROT" .and. "%SO"=="Y" then
cls %WF on %WB
%VI %SCO
pause Hit any key...
goto BEGIN
elseiff "%VC"=="McAfee" .and. "%SO1"=="Y" then
cls %WF on %WB
%VI %SCO1
pause Hit any key...
goto BEGIN
elseiff "%VC"!="McAfee" .and. "%VC"!="F-PROT" then
cls %WF on %WB
%VI %SCO2
pause Hit any key...
goto BEGIN
endiff
goto VIR
elseiff %WIN==@66 .or. "%WIN"=="C" then
sp 24 0 %MF on %MB
goto SETCOL
elseiff %WIN==@67 .or. "%WIN"=="L" then
cls
echo Shell to DOS... Type 'EXIT' to return to 4ARC
screen 23 1
call %_BOOT:\4DOS
goto BEGIN
elseiff %WIN==@68 .or. "%WIN"=="I" then
goto INFO
elseiff %WIN==@120 then
cls %WF on %WB
dir /2vp
pause Hit any key...
goto BEGIN
elseiff %WIN==@121 then
cdd %DST
sp 19 4 %WF on %WB
sp 19 4 %HF on %WB SWITCH TO %@UPPER[%DST]
beep 1500 3
beep 10 2
sp 19 4 %WF on %WB
goto PART2
elseiff %WIN==@122 then
cls %WF on %WB
dir /vmk >%HP%dirlist.tmp
set EXC=%@select[%HP%dirlist.tmp,0,0,23,78,DIRECTORY OF %@UPPER[%_CWD]]
set EXC=%@SUBSTR[%EXC,0,12]
%EXC
del /q %HP%dirlist.tmp
pause Hit any key
goto BEGIN
elseiff %WIN==@65 .or. "%WIN"=="U" then
set OPT=%@select[%HP%user.men,4,2,16,45,USER MENU]
set OPT=%@substr[%OPT,49,127]
if "%OPT"=="" goto START2
%OPT
goto BEGIN
elseiff "%WIN"=="R" then
goto BEGIN
elseiff %WIN==@78 .or. then
cls %WF on %WB
dir /2pv %DST
color %HF on %WB
inkey /K"YyNn" SWITCH TO DESTINATION-DIRECTORY OR GO BACK [Y/N] %%SW
color %WF on %WB
if "%SW"=="Y" cdd %DST
if "%SW"=="N" goto BEGIN
goto BEGIN
endiff
goto START
:HELP
list %HP%help.dat
goto BEGIN
:INFO
cls %WF on %WB
text
4ARC Archive Manager V1.30 (C)opyright KONGOWare 1992-94
Thank you Using 4ARC !
4ARC Archive Manager is a 4DOS-based Archivshell with multiple Functions.
First public Release in February 1992. This improved Version 1.30 is
released as SHAREWARE on 31th August 1992 by Volkmar Rosenow of KONGOWare.
Multi-featured Options like Support for 5 different Compression Programs,
including PKZIP, ARJ and LHA. DOS-Manager to handle Files quickly.
Flexible Virusscanning of Files in Conjunction with the popular VSCAN from
McAfee and the great F-PROT from Fridrik Skulason.
Point'n Shoot Usermenu, DOS-Shell, and more...
You are granted an limited Trial Period of 30 Days to test this Software.
After the Trial Period you must register 4ARC.
The costs are only $13,95 or 15,-DM. Please support Shareware, so that
future Versions of this Program and other Projects are possible.
Read the File register.doc for more Information.
KONGOWare
c/o Volkmar Rosenow
Gathersweg 19
4050 Mönchengladbach 1
GERMANY
endtext
pause >NUL
color %MF on %MB
goto BEGIN
:MAN
screen 23 1
set OPT=
set OPT=%@SELECT[%HP%manage.dat,4,2,16,20,Manager]
set OPT=%@SUBSTR[%OPT,1,3]
iff "%OPT"=="" then
goto START
elseiff "%OPT"=="Cur" then
goto NDIR
elseiff "%OPT"=="Des" then
goto NDST
if "%DST" NE "" cd %DST
if "%NDI" NE "" cd %NDI
elseiff "%OPT"=="Ref" then
goto BEGIN
elseiff "%OPT"=="Vie" then
cls whi on blu
dir /2apv
pause hit any key...
goto BEGIN
elseiff "%OPT"=="Cop" then
db 18 2 21 76 1 %BF on %BB fill %WB sha
color %WF on %WB
screen 19 4
input Copy to (─┘ = %DST): %%NDP
color %MF on %MB
sp 24 0 %MF on %MB
if "%NDP"=="" set NDP=%DST
select /d copy [*.*] %NDP
pause hit any key...
goto BEGIN
elseiff "%OPT"=="Mov" then
db 18 2 21 76 1 %BF on %BB fill %WB sha
color %WF on %WB
screen 19 4
input Move to (─┘ = %DST): %%NDP
color %MF on %MB
sp 24 0 %MF on %MB
if "%NDP"=="" set NDP=%DST
select /d move [*.*] %NDP
pause hit any key...
goto BEGIN
elseiff "%OPT"=="Del" then
select /d del [*.*]
pause hit any key...
goto BEGIN
elseiff "%OPT"=="Ren" then
dir /k/m %_CWDS >%HP%rename.tmp
set FN=%@SELECT[%HP%rename.tmp,4,1,22,76,Select File]
set FN=%@SUBSTR[%FN,0,12]
del /q %HP%rename.tmp
if "%FN"=="" goto MAN
db 18 2 21 76 1 %BF on %BB fill %WB sha
sp 19 4 %WF on %WB Renaming %FN
color blink %WF on %WB
screen 20 4
input Input new filename: %%FN2
color %MF on %MB
sp 24 0 %MF on %MB
if "%FN2"=="" goto MAN
if exist %FN2 goto FEXT
ren /q %FN %FN2
goto PART
elseiff "%OPT"=="MD/" then
db 18 2 21 76 1 %BF on %BB fill %WB sha
sp 19 4 %WF on %WB [M]AKE Directory:
sp 20 4 %WF on %WB [D]ELETE Directory:
sp 19 5 %HF on %WB M
sp 20 5 %HF on %WB D
color %MF on %MB
inkey /K"MmDd" %%CH
if "%CH"=="" goto PART
iff "%CH"=="M" then
screen 19 22
color %HF on %WB
input %%MD
color %MF on %MB
if "%MD"=="" goto PART
if isdir %MD goto FEXT1
md %MD
goto PART
else
color %HF on %WB
screen 20 24
input %%MD
color %MF on %MB
if "%MD"=="" goto PART
if not isdir %MD goto FEXT2
if "%_CWD"=="%MD" cd\
rd %MD
goto PART
endiff
elseiff "%OPT"=="Vsc" then
goto VIR
elseiff "%OPT"=="She" then
cls
echo Shell to DOS... Type 'EXIT' to return to 4ARC
screen 23 1
call %_BOOT:\4DOS
elseiff "%OPT"=="Con" then
cls %MF on %MB
db 1 1 21 76 4 bla on whi fill whi sha exp
sp 3 3 bri whi on whi ARCHIVER PASSWORD CFG-FILE USE
sp 4 1 bla on whi ├──────────────────────────────────────────────────────────────────────┤
sp 5 3 bla on whi PKZIP --- ├
sp 6 3 bla on whi ARJ --- ├
sp 7 3 bla on whi LHA --- ├
sp 8 3 bla on whi PKPAK --- ├
sp 9 3 bla on whi ZOO --- ├
sp 12 3 bri whi on whi SCANNER PATH OPTIONS
sp 13 1 bla on whi ├──────────────────────────────────────────────────────────────────────┤
db 1 1 10 72 4 bla on whi
db 1 72 21 76 4 bla on whi
db 10 1 17 72 4 bla on whi
vscrput 14 72 bla on whi ├├├╡│├├
sp 19 74 bli bri yel on whi √
sp 1 31 bla on whi CONFIGURATION
sp 14 3 bla on whi SCAN %VI2
sp 15 3 bla on whi F-PROT %VI1
sp 16 3 bla on whi OTHER %VI3
if "%PASSW1" != "" sp 5 19 bla on whi %PASSW1
if "%PASSW2" != "" sp 6 19 bla on whi %PASSW2
if "%PASSW3" != "" sp 8 19 bla on whi %PASSW3
if "%ARJ_SW" != "" sp 6 38 bla on whi %ARJ_SW
if "%[PKZIP.CFG]" != "" sp 5 38 bla on whi %[PKZIP.CFG]\PKZIP.CFG
if "%SCO1" != "" sp 14 36 bla on whi %SCO1
if "%SCO" != "" sp 15 36 bla on whi %SCO
if "%SCO2" != "" sp 16 36 bla on whi %SCO2
sp 19 3 bri whi on whi TEMPDIRECTORY:
sp 19 21 bla on whi %$T
sp 20 3 bri whi on whi EDITOR:
if "%EDI" != "" sp 20 21 bla on whi %@UPPER[%EDI]
if "%EDI" != "" sp 20 74 bli bri yel on whi √
if "%AR"=="PKZIP" sp 5 74 bli bri yel on whi √
if "%AR"=="ARJ" sp 6 74 bli bri yel on whi √
if "%AR"=="LHA" sp 7 74 bli bri yel on whi √
if "%AR"=="PKPAK" sp 8 74 bli bri yel on whi √
if "%AR"=="ZOO" sp 9 74 bli bri yel on whi √
if "%VC"=="McAfee" sp 14 74 bli bri yel on whi √
if "%VC"=="F-PROT" sp 15 74 bli bri yel on whi √
if "%VC"=="OTHER" sp 16 74 bli bri yel on whi √
screen 23 3
color %WF on %WB
pause Hit any key...
endiff
goto BEGIN
:NDIR
set CDI=
set CDI=%@SELECT[%HP%alldrive.tmp,4,2,16,45,Change current Path]
if "%CDI"=="A:" .or. "%CDI"=="B:" goto FDIR
if "%CDI"=="" goto START
set %_CWDS=%CDI
cdd %CDI
goto PART
:FDIR
color %WF on %WB
screen 18 1
cdd %CDI
cdd \
color %MF on %MB
sp 24 0 %MF on %MB
(global /iq echo %_CWDS) >>%HP%alldrive.tmp
set CDI=%@SELECT[%HP%alldrive.tmp,4,2,16,45,Change current Path]
set %_CWDS=%CDI
cdd %CDI
del /q %HP%alldrive.tmp
copy /q %HP%alldrive.sav %HP%alldrive.tmp
goto PART
:NDST
db 18 2 21 76 1 %BF on %BB fill %WB sha
color %WF on %WB
sp 19 4 %WF on %WB Old Destinationpath: %DST
screen 20 4
input Input New Destinationpath (─┘ for List): %%DST
color %MF on %MB
sp 24 0 %MF on %MB
if "%DST"=="" goto SALL
pushd %DST
set DST=%_CWDS
popd
goto PART
:SALL
screen 23 1
set DST=
set DST=%@SELECT[%HP%alldrive.tmp,4,2,16,45,New Destinationpath]
if "%DST"=="A:" .or. "%FDI"=="B:" goto FDST
pushd %DST
set DST=%_CWDS
popd
goto PART
:FDST
color %WF on %WB
screen 18 1
pushd %DST\
color %MF on %MB
sp 24 0 %MF on %MB
(global /iq echo %_CWDS) >>%HP%alldrive.tmp
set DST=%@SELECT[%HP%alldrive.tmp,4,2,16,45,New Destinationpath]
del /q %HP%alldrive.tmp
copy /q %HP%alldrive.sav %HP%alldrive.tmp
popd
goto PART
:FEXT
sp 19 52 bli %HF on %WB FILE ALREADY EXIST !!!
pause >NUL
goto PART
:FEXT1
sp 19 47 bli %HF on %WB DIRECTORY ALREADY EXIST !!!
delay 2
goto PART
:FEXT2
sp 20 46 bli %HF on %WB DIRECTORY DOES NOT EXIST !!!
delay 2
goto PART
:ARC
screen 23 1
set OPT=
set OPT=%@SELECT[%HP%archive.dat,4,22,16,45,Archiver]
set OPT=%@SUBSTR[%OPT,1,3]
iff "%OPT"=="" then
goto START
elseiff "%OPT"=="Cre" then
goto CRE
elseiff "%OPT"=="Dec" then
goto DEC
elseiff "%OPT"=="Ext" then
goto XDEC
elseiff "%OPT"=="Con" then
sp 20 3 %MF on %MB
sp 20 4 %WF on %MB Conversion Path: %@UPPER[%_CWD]
goto CON
elseiff "%OPT"=="Vie" then
goto VIA
elseiff "%OPT"=="Rep" then
goto REP
elseiff "%OPT"=="Mak" then
goto MAK
elseiff "%OPT"=="Com" then
goto COM
elseiff "%OPT"=="Pas" then
goto PAS
elseiff "%OPT"=="Vsc" then
goto VSA
elseiff "%OPT"=="PKl" then
cls %WF on %WB
db 5 18 7 62 3 %BF on %BB fill %WB sha exp
sp 6 20 %WF on %WB (C)ompress or (E)xtract Files ? [C/E]
screen 6 59
inkey /K"CcEe" %%CHO
if "%CHO"=="" goto BEGIN
if "%CHO"=="C" goto COMP
if "%CHO"=="E" goto EXT
:COMP
iff exist *.exe .or. exist *.com then
cls %WF on %WB
select /d pklite -b (*.com;*.exe)
cls %MF on %MB
iff exist *.bak then
db 5 25 7 55 3 %BF on %BB fill %WB sha exp
sp 6 28 bli %HF on %WB DELETE .BAK FILES ?
screen 6 48
inkey /K"YyNn" %%DB
if %DB==y del /qy *.bak
endiff
goto BEGIN
else
sp 20 42 bli %HF on %WB NO EXECUTABLES IN CURRENT PATH !
delay 1
sp 20 4 %WF on %WB
goto PART2
endiff
goto START
:EXT
cls %WF on %WB
select /d pklite -x (*.exe;*.com)
goto BEGIN
elseiff "%OPT"=="LZe" then
cls %WF on %WB
db 5 18 7 62 3 %BF on %BB fill %WB sha exp
sp 6 20 %WF on %WB (C)ompress or (E)xtract Files ? [C/E]
screen 6 59
inkey /K"CcEe" %%CHO
if "%CHO"=="" goto BEGIN
if "%CHO"=="C" goto COMP1
if "%CHO"=="E" goto EXT1
:COMP1
iff exist *.exe .or. exist *.com then
cls %WF on %WB
db 5 10 7 68 4 %BF on %WB fill %WB sha exp
sp 6 12 %WF on %WB Delete original Files after Compression ?
screen 6 55
inkey /K"YyNn" %%DB
if "%DB"=="" goto BEGIN
select /d dir /b >>%HP%exec.tmp (*.com;*.exe)
set N=0
goto LOOP1
:AGA
cls %WF on %WB
set N=%@EVAL[%N+1]
if "%@LINE[%HP%exec.tmp,%n]"=="**EOF**" goto TOTAL
:LOOP1
if not exist %HP%exec.tmp goto BEGIN
set TAR=%@line[%HP%exec.tmp,%n]
set FS=%@FILESIZE[%TAR,b]
set TS=%@EVAL[%TS+%FS]
if "%TAR"=="EOF" goto BEGIN
if "%@EXT[%TAR]"=="com" comtoexe %TAR
lzexe %@NAME[%TAR]
set FS1=%@FILESIZE[%@NAME[%TAR].exe,b]
set TS1=%@EVAL[%TS1+%FS1]
if "%@EXT[%TAR]"=="com" del /qy *.old
if "%@EXT[%TAR]"=="com" .and. "%DB"=="Y" del /qy %TAR
if "%@EXT[%TAR]"=="exe" .and. "%DB"=="Y" del /qy *.old
goto AGA
else
sp 20 42 bli %HF on %WB NO EXECUTABLES IN CURRENT PATH !
delay 1
sp 20 4 %WF on %WB
goto PART2
endiff
del /qy %HP%exec.tmp
:EXT1
cls %WF on %WB
select /d unlzexe (*.exe)
del /qy *.olz
goto BEGIN
endiff
goto BEGIN
:TOTAL
db 10 20 15 55 4 %HF on %HB fill %HB sha exp
db 10 20 13 55 4 %HF on %HB fill %HB
sp 11 49 whi on %WB bytes
sp 12 49 whi on %WB bytes
sp 14 49 bri whi on %WB bytes
sp 11 22 whi on %WB Total Old Size :
sp 12 22 whi on %WB Total New Size :
sp 14 22 whi on %WB TOTAL DIFFERENCE
sp 14 39 whi on %WB :
sp 11 %@EVAL[47-%@LEN[%TS]] whi on %HB %TS
sp 12 %@EVAL[47-%@LEN[%TS1]] whi on %HB %TS1
sp 14 %@EVAL[47-%@LEN[%@EVAL[%TS1-%TS]]] bri whi on %HB %@EVAL[%TS1-%TS]
set FS=
set FS1=
set TS=
set TS1=
pause Hit any key...
goto BEGIN
:CRE
db 18 2 21 76 1 %BF on %BB fill %WB sha
color %WF on %WB
sp 19 3 %WF on %WB
sp 20 3 %WF on %WB
sp 19 4 %WF on %WB Create Archive:
sp 20 54 %WF on %WB (─┘ change Archiver)
screen 19 24
input %%AN
color %MF on %MB
sp 24 0 %MF on %MB
iff "%AN"=="" then
goto SARC2
endiff
cls %WF on %WB
iff "%AR"=="ZOO" then
if exist %DST%%AN.ZOO gosub REN
goto ZOO
elseiff "%AR"=="PKZIP" then
if exist %DST%%AN.ZIP gosub REN
select dir /b >>contents (*.*)
if "%PASS1"=="y" pkzip -s%PASSW1 %DST%%AN @contents
if "%PASS1"=="" pkzip %DST%%AN @contents
del /q contents
elseiff "%AR"=="LHA" then
if exist %DST%%AN.LZH gosub REN
select dir /b >>contents (*.*)
lha a %DST%%AN @contents
del /q contents
elseiff "%AR"=="PKPAK" then
if exist %DST%%AN.ARC gosub REN
select dir /b >>contents (*.*)
if "%PASS3"=="y" pkpak -ag%PASSW3 %DST%%AN @contents
if "%PASS3"=="" pkpak -a %DST%%AN @contents
del /q contents
elseiff "%AR"=="ARJ" then
if exist %DST%%AN.ARJ gosub REN
goto AR
endiff
goto BEGIN
:ZOO
md %$T
select dir /b >>contents (*.*)
zoo aIP %$T\%AN <contents
del /q contents
move /q %$T\%AN.zoo %DST
rd %$T
goto BEGIN
:AR
if "%CT"=="y" goto GO
if "%ST"=="n" .or. "%ST"=="" goto GO1
if "%ST"=="y" goto GO2
sp 2 2 %WF on %WB Use your own predefined ARJ_SW Options [Y/N]
screen 2 48
inkey /K"YyNn" %%CT
if "%CT"=="y" goto GO
sp 4 2 %WF on %WB Test Archive after creating? [Y/N]
screen 4 38
inkey /K"YyNn" %%ST
if "%ST"=="n" goto GO1
if "%ST"=="y" goto GO2
:GO
select dir /b >>contents (*.*)
arj a %DST%%AN !contents
del /q contents
goto BEGIN
:GO1
select dir /b >>contents (*.*)
iff "%PASS2"=="" then
arj a -+ -jf1 -i2 -jm1 %DST%%AN !contents
else arj a -+ -g%PASSW2 -jf1 -i2 -jm1 %DST%%AN !contents
endiff
del /q contents
goto BEGIN
:GO2
select dir /b >>contents (*.*)
iff "%PASS2"=="" then
arj a -+ -jf1 -i2 -jt -jm1 %DST%%AN !contents
else arj a -+ -g%PASSW2 -jf1 -i2 -jt -jm1 %DST%%AN !contents
endiff
del /q contents
goto BEGIN
:DEC
dir /a-dkm *.zip;*.arj;*.lzh;*.lha;*.zoo;*.arc > %HP%arcs.tmp
if not exist *.lzh .and. not exist *.lha .and. not exist *.arj .and. not exist *.zip .and. not exist *.zoo .and. not exist *.arc goto EMPTY
set OPT=%@SELECT[%HP%arcs.tmp,4,2,16,45,Select Archive]
set SA=%@SUBSTR[%OPT,0,12]
set EXT=%@EXT[%SA]
iff "%EXT"=="" then
goto START
elseiff "%EXT"=="zip" then
cls %WF on %WB
iff "%PASS1"=="" then
pkunzip -q %SA %DST
else
pkunzip -q -s%PASSW1 %SA %DST
endiff
elseiff "%EXT"=="arj" then
cls %WF on %WB
iff "%PASS2"=="" then
arj e -+ -jyyn %SA %DST
else
arj e -+ -jyyn -g%PASSW2 %SA %DST
endiff
elseiff "%EXT"=="lzh" .or. "%EXT"=="lha" then
cls %WF on %WB
lha e %SA %DST
elseiff "%EXT"=="zoo" then
md %$T
move /q %SA %$T
pushd
cdd %$T
cls %WF on %WB
zoo e %SA
cls %MF on %MB
del /q %SA %HP%arcs.tmp
move /q *.* %DST
popd
rd %$T
elseiff "%EXT"=="arc" then
cls %WF on %WB
iff "%PASS3"=="" then
pkunpak %SA %DST
else
pkunpak -g%PASSW3 %SA %DST
endiff
endiff
color %WF on %WB
del /q %HP%arcs.tmp
pause Hit any key...
goto BEGIN
:XDEC
if not exist *.lzh .and. not exist *.lha .and. not exist *.arj .and. not exist *.zip goto EMPTY2
dir /a-dkm *.zip;*.arj;*.lzh;*.lha >> %HP%arcs.tmp
set OPT=%@SELECT[%HP%arcs.tmp,4,2,16,45,Select Archive]
del /q %HP%arcs.tmp
set SA=%@SUBSTR[%OPT,0,12]
set EXT=%@EXT[%SA]
if "%EXT"=="" goto START
iff "%EXT"=="zip" then
cls %WF on %WB
if "%PASS1"=="" pkunzip -q -d %SA %DST
if "%PASS1"=="y" pkunzip -q -d -s%PASSW1 %SA %DST
elseiff "%EXT"=="arj" then
cls %WF on %WB
if "%PASS2"=="" arj x -+ %SA %DST
if "%PASS2"=="y" arj x -+ -g%PASSW2 %SA %DST
elseiff "%EXT"=="lzh" .or. "%EXT"=="lha" then
cls %WF on %WB
lha x %SA %DST
endiff
pause Hit any key...
goto BEGIN
:EMPTY
db 18 2 21 76 1 %BF on %BB fill %WB sha
sp 19 4 %HF on %WB BEAM YOU UP, SCOTTY !!!
sp 20 4 %HF on %WB THERE ISN'T JUST ONE ARCHIVE IN THIS PATH...
delay 2
if "%FF"=="R"goto BEGIN
goto PART
:EMPTY2
db 18 2 21 76 1 %BF on %BB fill %WB sha
sp 19 4 %HF on %WB NO X-TRACTABLE ARCHIVE IN THIS PATH !!!
sp 20 4 %HF on %WB (only ZIP, ARJ, and LHA support this Feature)
delay 2
if "%FF"=="R"goto BEGIN
goto PART
:CON
set OPT=%@SELECT[%HP%convert.dat,4,22,14,45,Convert Archives]
set MOD=%@SUBSTR[%opt,12,3]
if exist *.zip .or. exist *.arj .or. exist *.arc .or. exist *.lzh .or. exist *.lha goto CON1
goto MSG
:CON1
if not isdir %$T md %$T
set COP=%_CWD
if "%MOD"=="ZIP" select dir /b [*.arj;*.lzh;*.lha;*.arc;*.zoo] >%HP%listarc.tmp
echo EOF >>%HP%listarc.tmp
if "%MOD"=="ARJ" select dir /b [*.zip;*.lzh;*.lha;*.arc;*.zoo] >%HP%listarc.tmp
echo EOF >>%HP%listarc.tmp
if "%MOD"=="LZH" select dir /b [*.zip;*.arj;*.arc;*.zoo] >%HP%listarc.tmp
echo EOF >>%HP%listarc.tmp
if "%MOD"=="ARC" select dir /b [*.zip;*.arj;*.lzh;*.lha;*.zoo] >%HP%listarc.tmp
echo EOF >>%HP%listarc.tmp
if "%MOD"=="ZOO" select dir /b [*.zip;*.arj;*.lzh;*.lha;*.arc] >%HP%listarc.tmp
echo EOF >>%HP%listarc.tmp
set N=0
goto LOOP
:AGAIN
cls %WF on %WB
set N=%@EVAL[%N+1]
if "%@LINE[%HP%listarc.tmp,%n]"=="EOF" goto TOTC
:LOOP
set TAR=%@line[%HP%listarc.tmp,%n]
if "%TAR"=="EOF" .and. %N==0 goto BEGIN
set FS=%@FILESIZE[%TAR,b]
color %WF on %WB
iff "%MOD"=="ZIP" then
if "%@EXT[%TAR]"=="arj" arj e -+ -jyyn %TAR %$T
if "%@EXT[%TAR]"=="arc" pkunpak %TAR %$T
if "%@EXT[%TAR]"=="lha" .or. "%@EXT[%TAR]"=="lzh" lha e %TAR %$T\
iff "%@EXT[%TAR]"=="zoo" then
copy /q %TAR %$T
pushd %$T
zoo e %TAR
del /q %TAR
popd
endiff
pushd %$T
if exist %TAR del /q %TAR
pkzip -m %@NAME[%TAR]
set FS1=%@FILESIZE[%@NAME[%TAR].ZIP,b]
set NEW=%@NAME[%TAR]
if exist %COP\%@NAME[%TAR].ZIP gosub REN1
move /q *.zip %COP
cd..
popd
del /q %TAR
goto COUNT
elseiff "%MOD"=="ARJ" then
if "%@EXT[%TAR]"=="zip" pkunzip -q %TAR %$T
if "%@EXT[%TAR]"=="arc" pkunpak %TAR %$T
if "%@EXT[%TAR]"=="lha" .or. "%@EXT[%TAR]"=="lzh" lha e %TAR %$T\
iff "%@EXT[%TAR]"=="zoo" then
copy /q %TAR %$T
pushd %$T
zoo e %TAR
del /q %TAR
popd
endiff
pushd %$T
if exist %TAR del /q %TAR
if "%ST"=="y" .and. "%CT"=="n" arj m -jm1 -jt %@NAME[%TAR]
if "%ST"=="n" .and. "%CT"=="n" arj m -jm1 %@NAME[%TAR]
if "%CT"=="y" arj m %@NAME[%TAR]
if "%CT"=="" arj m -jm1 %@NAME[%TAR]
set FS1=%@FILESIZE[%@NAME[%TAR].ARJ,b]
set NEW=%@NAME[%TAR]
if exist %COP\%@NAME[%TAR].ARJ gosub REN1
move /q *.arj %COP
cd..
popd
del /q %TAR
goto COUNT
elseiff "%MOD"=="LZH" then
if "%@EXT[%TAR]"=="zip" pkunzip -q %TAR %$T
if "%@EXT[%TAR]"=="arj" arj e -+ -jyyn %TAR %$T
if "%@EXT[%TAR]"=="lzh" lha e %TAR %$T\
if "%@EXT[%TAR]"=="arc" pkunpak %TAR %$T
iff "%@EXT[%TAR]"=="zoo" then
copy /q %TAR %$T
pushd %$T
zoo e %TAR
del /q %TAR
popd
endiff
pushd %$T
if exist %TAR del /q %TAR
lha m %@NAME[%TAR]
set FS1=%@FILESIZE[%@NAME[%TAR].LZH,b]
set NEW=%@NAME[%TAR]
if exist %COP\%@NAME[%TAR].LZH gosub REN1
move /q *.lzh %COP
cd..
popd
del /q %TAR
goto COUNT
elseiff "%MOD"=="ARC" then
if "%@EXT[%TAR]"=="zip" pkunzip -q %TAR %$T
if "%@EXT[%TAR]"=="arj" arj e -+ -jyyn %TAR %$T
if "%@EXT[%TAR]"=="lha" .or. "%@EXT[%TAR]"=="lzh" lha e %TAR %$T\
iff "%@EXT[%TAR]"=="zoo" then
copy /q %TAR %$T
pushd %$T
zoo e %TAR
del /q %TAR
popd
endiff
pushd %$T
if exist %TAR del /q %TAR
pkpak m %@NAME[%TAR]
set FS1=%@FILESIZE[%@NAME[%TAR].ARC,b]
set NEW=%@NAME[%TAR]
if exist %COP\%@NAME[%TAR].ARC gosub REN1
move /q *.arc %COP
cd..
popd
del /q %TAR
goto COUNT
elseiff "%MOD"=="ZOO" then
if "%@EXT[%TAR]"=="zip" pkunzip -q %TAR %$T
if "%@EXT[%TAR]"=="arj" arj e -+ -jyyn %TAR %$T
if "%@EXT[%TAR]"=="lha" .or. "%@EXT[%TAR]"=="lzh" lha e %TAR %$T\
if "%@EXT[%TAR]"=="arc" pkunpak %TAR %$T
pushd %$T
zoo aMP %@NAME[%TAR] *.* *
set FS1=%@FILESIZE[%@NAME[%TAR].ZOO,b]
set NEW=%@NAME[%TAR]
if exist %COP\%@NAME[%TAR].ZOO gosub REN1
move /q *.zoo %COP
cd..
popd
del /q %TAR
goto COUNT
endiff
:COUNT
cls %WF on %WB
db 10 1 15 37 2 %WF on %WB fill %WB sha exp
db 10 1 13 37 2 %WF on %WB fill %WB
sp 11 31 bri whi on %WB bytes
sp 12 31 bri whi on %WB bytes
sp 14 31 bri whi on %WB bytes
sp 11 3 bri whi on %WB %@UPPER[%TAR] :
sp 12 3 bri whi on %WB %@UPPER[%NEW.%MOD] :
sp 14 3 bri whi on %WB Difference :
sp 11 %@EVAL[29-%@LEN[%FS]] bri whi on %WB %FS
sp 12 %@EVAL[29-%@LEN[%FS1]] bri whi on %WB %FS1
sp 14 %@EVAL[29-%@LEN[%@EVAL[%FS1-%FS]]] bri whi on %WB %@EVAL[%FS1-%FS]
set TS=%@EVAL[%TS+%FS]
set TS1=%@EVAL[%TS1+%FS1]
delay 3
goto AGAIN
:TOTC
rd %$T
del /q %HP%listarc.tmp
db 10 41 15 76 2 %HF on %HB fill %HB sha exp
db 10 41 13 76 2 %HF on %HB fill %HB
sp 9 43 bri whi on %HB ARCHIVES CONVERTED: %N
sp 11 70 bri whi on %WB bytes
sp 12 70 bri whi on %WB bytes
sp 14 70 bri whi on %WB bytes
sp 11 43 bri whi on %WB Total Old Size :
sp 12 43 bri whi on %WB Total New Size :
sp 14 43 bli bri whi on %WB TOTAL DIFFERENCE
sp 14 61 bri whi on %WB :
sp 11 %@EVAL[68-%@LEN[%TS]] bri whi on %HB %TS
sp 12 %@EVAL[68-%@LEN[%TS1]] bri whi on %HB %TS1
sp 14 %@EVAL[68-%@LEN[%@EVAL[%TS1-%TS]]] bri whi on %HB %@EVAL[%TS1-%TS]
if %@EVAL[%TS1-%TS] LT 0 sp 18 43 %HF on %HB HEY GREAT ! SAVED SOME SPACE...
if %@EVAL[%TS1-%TS] GT 0 sp 18 43 %HF on %HB OOPS ! BLOWING UP...think of it
set FS=
set FS1=
set TS=
set TS1=
pause Hit any key...
goto BEGIN
:VIA
dir /a-dkm *.zip;*.arj;*.lzh;*.lha;*.zoo;*.arc > %HP%via.tmp
if not exist *.lzh .and. not exist *.lha .and. not exist *.arj .and. not exist *.zip .and. not exist *.zoo .and. not exist *.arc goto EMPTY
set OPT=%@SELECT[%HP%via.tmp,4,2,16,45,List Archive]
del /q %HP%via.tmp
set SA=%@SUBSTR[%OPT,0,12]
set EXT=%@EXT[%SA]
if "%EXT"=="" goto START
iff "%EXT"=="zip" then
cls %WF on %WB
pkzip -v %SA
pause Hit any key..
goto BEGIN
elseiff "%EXT"=="arj" then
cls %WF on %WB
arj l %SA
pause Hit any key...
goto BEGIN
elseiff "%EXT"=="lzh" .or. "%EXT"=="lha" then
cls %WF on %WB
lha l %SA
pause Hit any key...
goto BEGIN
elseiff "%EXT"=="arc" then
cls %WF on %WB
pkpak -v %SA
pause Hit any key...
goto BEGIN
elseiff "%EXT"=="zoo" then
cls %WF on %WB
zoo VC %SA
pause Hit any key...
goto BEGIN
endiff
goto BEGIN
:REP
set FF=R
md %$T
if exist *.zip .or. exist *.arj .or. exist *.lzh .or. exist *.lha .or. exist *.arc .or. exist *.zoo dir /b *.zip;*.arj;*.lzh;*.lha;*.arc;*.zoo >%HP%repair.tmp
if not exist %HP%repair.tmp goto EMPTY
set OPT=%@SELECT[%HP%repair.tmp,4,2,16,45,Repair Archive]
set RA=%@SUBSTR[%OPT,0,12]
set EXT=%@EXT[%RA]
if "%EXT"=="" goto START
iff "%EXT"=="zip" then
cls %WF on %WB
pkzipfix %RA
del /pq %RA
elseiff "%EXT"=="arj" then
copy /q %RA %$T
pushd %$T
cls %WF on %WB
arj e -+ -jr -jyyn %RA
pause
del /q %RA
cls %WF on %WB
dir /2kmv
pause
del *.*
popd
elseiff "%EXT"=="lzh" .or. "%EXT"=="lha" then
set PRO=LHA
gosub SORRY
lha t %RA
pause Hit any key...
elseiff "%EXT"=="arc" then
set PRO=PKPAK
gosub SORRY
pkunpak -t %RA
pause Hit any key...
elseiff "%EXT"=="zoo" then
gosub SORRY
zoo xNd %RA
pause Hit any key...
endiff
rd %$T
del /q %HP%repair.tmp
set PRO=
goto BEGIN
:SORRY
cls %WF on %WB
db 1 13 5 63 3 %BF on %BB fill %WB sha exp
sp 2 34 bli %HF on %HB SORRY !
sp 3 16 %WF on %WB %@UPPER[%PRO] isn't capable of Reconstructing Archives
sp 4 16 %WF on %WB You can only test Integrity of Archive.
screen 7 8
pause Hit any key to start Testing...
return
:MAK
if exist *.zip .or. exist *.arj .or. exist *.lzh .or. exist *.lha .or. exist *.arc dir /b *.zip;*.arj;*.lzh;*.lha;*.arc >%HP%sfx.tmp
if not exist %HP%sfx.tmp goto EMPTY
cls %WF on %WB
set OPT=%@SELECT[%HP%sfx.tmp,4,2,16,45,Make SFX]
set RA=%@SUBSTR[%OPT,0,12]
set EXT=%@EXT[%RA]
if "%EXT"=="" goto BEGIN
iff "%EXT"=="zip" then
iff exist %@NAME[%RA].EXE then
db 2 22 7 58 3 %BF on %BB fill %WB sha exp
sp 3 24 bli %HF on %WB FILE %@NAME[%RA].EXE ALREADY EXISTS !!
sp 5 24 %WF on %WB Input new Name:
sp 6 24 %WF on %WB (─┘ for overwriting File)
color bri whi on %WB
screen 5 43
input %%NN
color %WF on %WB
iff "%NN" NE "%RA" .and. "%NN" NE "" then
ren /q %RA %NN.ZIP
set RA=%NN
endiff
if "%NN"==""set NN=%RA
screen 10 1
endiff
zip2exe %RA
elseiff "%EXT"=="arj" then
arj y -je1 %RA
elseiff "%EXT"=="lzh" .or. "%EXT"=="lha" then
lha s %RA
elseiff "%EXT"=="arc" then
copy /b %@SEARCH[pksfx.pgm] + %RA %@NAME[%RA].EXE
endiff
del /q %HP%sfx.tmp
goto BEGIN
:COM
if exist *.zip .or. exist *.arj .or. exist *.arc .or. exist *.zoo dir /b *.zip;*.arj;*.arc;*.zoo >%HP%comment.tmp
if not exist %HP%comment.tmp goto EMPTY
set OPT=%@SELECT[%HP%comment.tmp,4,2,16,45,Comment Archive]
set RA=%@SUBSTR[%OPT,0,12]
goto COMM
:FRC
iff %@lines[%HP%4arc.btm] != 2006 then
BEEP 1500 3
sp 20 25 bli %HF on %WB FILE HAS BEEN CORRUPTED !!!
goto EXIT
endiff
return
:COMM
set EXT=%@EXT[%RA]
if "%EXT"=="" goto START
cls %WF on %WB
iff "%EXT"=="zip" then
pkzip -z %RA
elseiff "%EXT"=="arj" then
db 1 2 3 76 3 %BF on %BB fill %WB sha
sp 2 4 %WF on %WB Add Comments (M)anually or use (C)ommentfile ? [M/C]
color %HF on %WB
screen 2 57
inkey /K"MmCc" %%CO
color %WF on %WB
screen 5 1
if "%CO"=="" goto BEGIN
if "%CO"=="M" arj c -+ %RA
iff "%CO"=="C" then
db 5 2 8 76 3 %BF on %BB fill %WB sha
sp 6 4 %WF on %WB Input Commentfile (full Path):
color %HF on %WB
screen 7 4
input %%CF
color %WF on %WB
screen 10 1
arj y -+ -z%CF %RA
endiff
elseiff "%EXT"=="arc" then
pkpak -x %RA
elseiff "%EXT"=="zoo" then
zoo c %RA
endiff
del /q %HP%comment.tmp
goto BEGIN
:VSA
md %$T
dir /a-dkm *.zip;*.arj;*.lzh;*.lha;*.zoo;*.arc > %HP%vsc.tmp
if not exist *.lzh .and. not exist *.lha .and. not exist *.arj .and. not exist *.zip .and. not exist *.zoo .and. not exist *.arc goto EMPTY
set OPT=%@SELECT[%HP%vsc.tmp,4,2,16,45,Scan Archive]
del /q %HP%vsc.tmp
set SA=%@SUBSTR[%OPT,0,12]
set EXT=%@EXT[%SA]
if "%EXT"=="" goto START
iff "%VI"=="" then
sp 17 24 bli %HF on %WB No Scanner selected
delay 1
sp 17 24 %MF on %MB
goto START2
elseiff "%EXT"=="zip" then
cls %WF on %WB
pkunzip %SA %$T
goto SCAN
elseiff "%EXT"=="arj" then
cls %WF on %WB
arj e -+ -jyyn %SA %$T
goto SCAN
elseiff "%EXT"=="lha" .or. "%EXT"=="lzh" then
copy /q %SA %$T
pushd %$T
cls %WF on %WB
lha e %SA
popd
goto SCAN
elseiff "%EXT"=="arc" then
cls %WF on %WB
pkunpak %SA %$T
goto SCAN
elseiff "%EXT"=="zoo" then
copy /q %SA %$T
pushd %$T
cls %WF on %WB
zoo e %SA
popd
goto SCAN
endiff
goto BEGIN
:SCAN
iff "%VC"=="McAfee" then
%VI %$T\*.* /NOMEM /NOPAUSE /BELL /NOEXPIRE /REPORT %HP%arcvir.lst
set RS=%_?
del /yq %$T\*.*
elseiff "%VC"=="F-PROT" then
%VI %$T\*.* -NOMEM -NOBREAK /REPORT=%HP%arcvir.lst
set RS=%_?
del /yq %$T\*.*
elseiff "%VC" != "McAfee" .and. "%VC" != "F-PROT" then
%VI %$T\*.*
set RS=%_?
del /yq %$T\*.*
endiff
cls
db 5 15 9 63 3 %BF on %BB fill %WB sha exp
sp 6 32 %HF on %WB ARCHIVE SCANNED !
iff "%RS"=="0" then
sp 8 24 %WF on %WB No Infection found in Archive.
elseiff "%RS"=="1" then
sp 8 18 %WF on %WB *ALERT* Infection found in Archive. *ALERT*
endiff
sp 11 13 %WF on %WB Report is send to File 'ARCVIR.LST' in 4ARC Directory...
screen 14 22
pause Hit any key...
goto BEGIN
:VIR
iff not "%VC"=="McAfee" .and. not "%VC"=="F-PROT" then
iff "%SO2"=="N" then
goto VIR1
elseiff "%VI"=="" then
sp 17 24 bli %HF on %WB No Scanner selected
delay 1
sp 17 24 %MF on %MB
goto START2
endiff
cls
%VI %SCO2
elseiff "%VC"=="F-PROT" then
cls
db 2 2 17 76 3 %BF on %BB fill %WB sha exp
db 18 2 21 76 1 %BF on %BB fill %WB sha exp
sp 3 32 %HF on %WB SCANOPTIONS
sp 1 3 %WF on %WB * = default
sp 0 41 %HF on %WB F-PROT.EXE Copyright Fridrik Skulason
sp 4 3 %WF on %WB /BOOT * Scan Boot-Sector /APPEND Append report to File
sp 5 3 %WF on %WB /PACKED * Scan packed file /AUTO Autodelete/-disinfect
sp 6 3 %WF on %WB /FILE * Scan files /COMMAND Force commandline Mode
sp 7 3 %WF on %WB /DELETE Delete infected files /DISINF Disinfect Files
sp 8 3 %WF on %WB /HARD Scan entire Disk /ALL Scan all files
sp 9 3 %WF on %WB /HELP List help /INTER Interactive Mode
sp 10 3 %WF on %WB /NET Scan network /NOBREAK Disable 'ESC' during Scan
sp 11 3 %WF on %WB /NOMEM Don't scan mem /MULTI Scan multiple Disks
sp 12 3 %WF on %WB /ANALYSE Use heuristic Analysis /QUICK Faster Scan
sp 13 3 %WF on %WB /LIST Report to Screen /SILENT no Screen Output
sp 14 3 %WF on %WB /TROJAN Search Trojan horses /USER Scan for userdefined String
sp 15 3 %WF on %WB /REPORT=file create Report /INTER Force interactive Mode
sp 19 4 %HF on %WB Input Scanoptions: [Drives, File or Directory] [/Option]...[/Option]
if "%HO"=="Y" return
screen 20 5
color %HF on %WB
input %%SCO
if "%SCO"==""goto BEGIN
cls
%VI %SCO
color %MF on %MB
sp 24 0 %MF on %MB
goto BEGIN
elseiff "%VC"=="McAfee" then
cls
db 2 2 17 76 3 %BF on %BB fill %WB sha exp
db 18 2 21 76 1 %BF on %BB fill %WB sha exp
sp 0 41 %HF on %WB SCAN.EXE Copyright McAffee Associates
sp 3 48 %HF on %WB (partial List)
sp 4 4 %WF on %WB /? /H Display help screen /RV Remove Validation codes
sp 5 4 %WF on %WB /A Scan all files /SAVE Save options as defaults
sp 6 4 %WF on %WB /AV file Add validation codes /SUB Scan subdirectories
sp 7 4 %WF on %WB /CF file Using recovery data @file Use configuration file
sp 8 4 %WF on %WB /CHKHI Memorycheck ≤ 1088Kb /E .xxx Scan overlay extensions
sp 9 4 %WF on %WB /CG Check Rec.-data /BELL Beep when a virus is found
sp 10 4 %WF on %WB /D Delete infected file /CV Check validation codes
sp 11 4 %WF on %WB /FAST Fast Scan
sp 12 4 %WF on %WB /M Memorycheck all viruses \ RootDir and Bootarea only
sp 13 4 %WF on %WB /MANY Scan multiple floppies
sp 14 4 %WF on %WB /NOBREAK Disable Ctrl-C
sp 15 4 %WF on %WB /NOMEM Skip memory Check *** Please consult VSCANxx.DOC ***
sp 16 4 %WF on %WB /NOPAUSE Disable screen pause *** for complete Optionlist ***
sp 19 4 %HF on %WB Input Scanoptions: [Drives, File or Directory] [/Option]...[/Option]
if "%HO"=="Y" return
screen 20 5
color %HF on %WB
input %%SCO1
if "%SCO1"==""goto BEGIN
cls
%VI %SCO1
pause
color %MF on %MB
sp 24 0 %MF on %MB
goto BEGIN
endiff
goto BEGIN
:VIR1
db 18 2 21 76 1 %BF on %BB fill %WB sha exp
sp 19 4 %HF on %WB Input Scanoptions:
screen 20 4
color %HF on %WB
input %%SCO2
cls
%VI %SCO2
pause
color %MF on %MB
sp 24 0 %MF on %MB
goto BEGIN
:SET
screen 23 1
set OPT=%@SELECT[%HP%setup.dat,4,47,16,76,Setup]
set OPT=%@SUBSTR[%OPT,1,3]
iff "%OPT"=="" then
goto START
elseiff "%OPT"=="Arc" then
goto SARC
elseiff "%OPT"=="Vir" then
goto SVIR
elseiff "%OPT"=="Tem" then
goto STEM
elseiff "%OPT"=="Des" then
goto SDIR
elseiff "%OPT"=="Col" then
goto SETCOL
elseiff "%OPT"=="Edi" then
db 18 2 21 76 1 %BF on %BB fill %WB sha
color %WF on %WB
screen 19 4
sp 20 55 %WF on %WB (invoke with ALT-E)
input Use Editor: %%EDI
color %MF on %MB
sp 24 0 %MF on %MB
if "%EDI"=="" goto PART
goto PART
elseiff "%OPT"=="SAV" then
:SAVE
echo COL=%COL >%HP%4arc.cfg
echo MB=%MB >>%HP%4arc.cfg
echo MF=%MF >>%HP%4arc.cfg
echo BF=%BF >>%HP%4arc.cfg
echo BB=%BB >>%HP%4arc.cfg
echo WF=%WF >>%HP%4arc.cfg
echo WB=%WB >>%HP%4arc.cfg
echo TF=%TF >>%HP%4arc.cfg
echo TB=%TB >>%HP%4arc.cfg
echo HF=%HF >>%HP%4arc.cfg
echo HB=%HB >>%HP%4arc.cfg
echo SF=%SF >>%HP%4arc.cfg
echo SB=%SB >>%HP%4arc.cfg
echo SO=%SO >>%HP%4arc.cfg
echo SO1=%SO1 >>%HP%4arc.cfg
echo SO2=%SO2 >>%HP%4arc.cfg
echo SCO=%SCO >>%HP%4arc.cfg
echo SCO1=%SCO1 >>%HP%4arc.cfg
echo SCO2=%SCO2 >>%HP%4arc.cfg
echo G1=%G1 >>%HP%4arc.cfg
echo G2=%G2 >>%HP%4arc.cfg
echo G3=%G3 >>%HP%4arc.cfg
echo PASS1=%PASS1 >>%HP%4arc.cfg
echo PASSW1=%PASSW1 >>%HP%4arc.cfg
echo PASS2=%PASS2 >>%HP%4arc.cfg
echo PASSW2=%PASSW2 >>%HP%4arc.cfg
echo PASS3=%PASS3 >>%HP%4arc.cfg
echo PASSW3=%PASSW3 >>%HP%4arc.cfg
echo BL1=%BL1 >>%HP%4arc.cfg
echo BL2=%BL2 >>%HP%4arc.cfg
echo AS=%AS >>%HP%4arc.cfg
echo AS1=%AS1 >>%HP%4arc.cfg
echo AS2=%AS2 >>%HP%4arc.cfg
echo AR=%AR >>%HP%4arc.cfg
echo VC=%VC >>%HP%4arc.cfg
echo VI=%VI >>%HP%4arc.cfg
echo VI1=%VI1 >>%HP%4arc.cfg
echo VI2=%VI2 >>%HP%4arc.cfg
echo VI3=%VI3 >>%HP%4arc.cfg
echo $T=%$T >>%HP%4arc.cfg
echo COM=%COM >>%HP%4arc.cfg
echo CT=%CT >>%HP%4arc.cfg
echo ST=%ST >>%HP%4arc.cfg
echo DST=%DST >>%HP%4arc.cfg
echo EDI=%EDI >>%HP%4arc.cfg
set DP=
set TP=
goto START
endiff
goto BEGIN
:SARC
set OPT=%@SELECT[%HP%arcs.dat,4,47,16,76,Select Archiver]
set OPT=%@SUBSTR[%OPT,1,3]
if "%OPT"=="" goto START
if "%OPT"=="ARJ" goto ARO
if "%OPT"=="LHA" set AR=LHA
if "%OPT"=="ZOO" set AR=ZOO
iff "%OPT"=="PKZ" then
set AR=PKZIP
db 18 2 21 76 1 %BF on %BB fill %WB sha
sp 19 4 %WF on %WB Use Password for new Archives ? [Y/N]
color %HF on %WB
screen 19 42
inkey /K"YyNn" %%PASS1
iff "%PASS1"=="y" then
set G1=Pass
sp 20 4 %HF on %WB Password:
screen 20 14
input %%PASSW1
color %WF on %WB
else set PASS1=
set G1=
endiff
elseiff "%OPT"=="PKP" then
db 18 2 21 76 1 %BF on %BB fill %WB sha
set AR=PKPAK
sp 19 4 %WF on %WB Use Password for new Archives ? [Y/N]
color %HF on %WB
screen 19 42
inkey /K"YyNn" %%PASS3
iff "%PASS3"=="y" then
set G3=Pass
sp 20 4 %HF on %WB Password:
screen 20 14
input %%PASSW3
color %WF on %WB
else set PASS3=
set G3=
endiff
endiff
sp 5 61 %WF on %WB
sp 5 63 %SF on %SB %AR
goto PART
:ARO
set AR=ARJ
db 5 2 16 45 2 %BF on %BB fill %WB sha explode
sp 6 11 %HF on %WB ARJ CONFIGURATION OPTIONS
sp 7 4 %WF on %WB ARJ has the capability to use predefined
sp 8 4 %WF on %WB Options stored in a CFG-File and put in
sp 9 4 %WF on %WB the Environment as the ARJ_SW Variable.
sp 10 4 %WF on %WB ARJ can also check Archives for Errors
sp 11 4 %WF on %WB after Creating. You can permanently
sp 12 4 %WF on %WB dis-/enable these two Features for Use
sp 13 4 %WF on %WB with 4ARC. Choose your desired Options
sp 14 4 %WF on %WB and (optionally) save them as Default.
sp 15 4 %WF on %WB Press Return to continue...
screen 18 1
pause >NUL
db 5 2 16 45 4 %BF on %BB fill %WB sha explode
sp 7 4 %WF on %WB Use ARJ_SW Environment Variable [Y/N]
color %HF on %WB
screen 7 42
inkey /K"YyNn" %%CT
iff "%CT"=="y" then
set G2=SWI
goto BEGIN
endiff
sp 9 4 %WF on %WB Test Archive after creating? [Y/N]
screen 9 39
inkey /K"YyNn" %%ST
set GG=T-
if "%ST"=="Y" set GG=T+
sp 11 4 %WF on %WB Use Password for Archives ? [Y/N]
screen 11 39
inkey /K"YyNn" %%PASS2
iff "%PASS2"=="y" then
set G2=(%GG/P+)
sp 13 4 %HF on %WB Password:
screen 13 15
input %%PASSW2
else set PASS2=
set G2=(%GG/P-)
endiff
color %WF on %WB
goto BEGIN
:SARC2
set OPT=%@SELECT[%HP%arcs.dat,4,47,12,76,Select Archiver]
set OPT=%@SUBSTR[%OPT,1,3]
if "%OPT"=="" goto BEGIN
if "%OPT"=="PKZ" set AR=PKZIP
if "%OPT"=="ARJ" set AR=ARJ
if "%OPT"=="LHA" set AR=LHA
if "%OPT"=="ZOO" set AR=ZOO
if "%OPT"=="PKP" set AR=PKPAK
sp 5 63 %BB on %BB
if "%AR"=="PKZIP" sp 5 63 %SF on %SB PKZIP %G1
if "%AR"=="ARJ" sp 5 63 %SF on %SB ARJ %G2
if "%AR"=="LHA" sp 5 63 %SF on %SB LHA
if "%AR"=="PKPAK" sp 5 63 %SF on %SB PKPAK %G3
if "%AR"=="ZOO" sp 5 63 %SF on %SB ZOO
goto CRE
:SVIR
set UO=
screen 23 1
set OPT=%@SELECT[%HP%scan.dat,4,47,16,76,Select Scanner]
set OPT=%@SUBSTR[%OPT,1,4]
if "%OPT"=="" goto START
iff "%OPT"=="F-PR" then
set VC=F-PROT
db 18 2 21 76 1 %BF on %BB fill %WB sha
color %WF on %WB
sp 19 4 %MF on %MB
sp 19 4 %WF on %WB Use old Options for automatic Scan ? [Y/N]
screen 19 47
inkey /K"YyNn" %%OO
iff "%OO"=="Y" then
set VI=%VI1
goto CVIR
endiff
sp 19 4 %MF on %MB
sp 19 4 %WF on %WB Input Programname (full Path)
color bri %WF on %WB
screen 20 4
input %%VI1
iff "%VI1"=="" then
set SO=
set VC=
goto PART1
endiff
iff not exist %VI1 then
set VI=
set VC=
sp 20 56 bli %HF on %WB INVALID PROGRAMNAME
beep 10 3
goto CVIR
else
set VI=%VI1
sp 19 4 %MF on %MB
sp 20 3 %MF on %MB
sp 19 5 %WF on %WB Define Scanoptions for automatic Scanning ? [Y/N]
screen 19 55
inkey /K"YyNn" %%SO
iff "%SO"=="" .or. "%SO"=="N" then
set AS=-
goto CVIR
endiff
set HO=Y
set SCO=
gosub VIR
set HO=
color %HF on %WB
screen 20 4
input %%SCO
iff "%SCO"=="" then
set AS=-
set SO=
goto BEGIN
endiff
set AS=+
set SO=y
goto BEGIN
endiff
elseiff "%OPT"=="McAf" then
set VC=McAfee
db 18 2 21 76 1 %BF on %BB fill %WB sha
color %WF on %WB
sp 19 4 %MF on %MB
sp 19 4 %WF on %WB Use old Options for automatic Scan ? [Y/N]
screen 19 47
inkey /K"YyNn" %%OO
iff "%OO"=="Y" then
set VI=%VI2
goto CVIR
endiff
sp 19 4 %MF on %MB
sp 19 4 %WF on %WB Input Programname (full Path)
color bri %WF on %WB
screen 20 4
input %%VI2
if "%VI"=="" goto PART1
iff not exist %VI2 then
set VI=
set VC=
sp 20 56 bli %HF on %WB INVALID PROGRAMNAME
beep 10 3
goto CVIR
else
set VI=%VI2
sp 19 4 %MF on %MB
sp 20 3 %MF on %MB
sp 19 5 %WF on %WB Define Scanoptions for automatic Scanning ? [Y/N]
screen 19 55
inkey /K"YyNn" %%SO1
iff "%SO1"=="" .or. "%SO1"=="N" then
set AS1=-
goto CVIR
endiff
set HO=Y
set SCO1=
gosub VIR
set HO=
color %HF on %WB
screen 20 4
input %%SCO1
iff "%SCO1"=="" then
set SO1=
set AS1=-
goto BEGIN
endiff
set AS1=+
set SO1=y
goto BEGIN
endiff
elseiff "%OPT"=="OTHE" then
set VC=Other
db 18 2 21 76 1 %BF on %BB fill %WB sha
color %WF on %WB
sp 19 4 %MF on %MB
sp 19 4 %WF on %WB Use old Options for automatic Scan ? [Y/N]
screen 19 47
inkey /K"YyNn" %%OO
iff "%OO"=="Y" then
set VI=%VI3
goto CVIR
endiff
sp 19 4 %MF on %MB
sp 19 4 %WF on %WB Input Programname (full Path)
color bri %WF on %WB
screen 20 4
input %%VI3
if "%VI3"=="" goto PART1
iff not exist %VI then
set VI=
set VC=
sp 20 56 bli %HF on %WB INVALID PROGRAMNAME
beep 10 3
goto CVIR
endiff
set VI=%VI3
sp 19 4 %MF on %MB
sp 20 3 %MF on %MB
sp 19 4 %WF on %WB Define Scanoptions for automatic Scanning ? [Y/N]
screen 19 55
inkey /K"YyNn" %%SO2
iff "%SO2"=="" .or. "%SO2"=="N" then
set AS2=-
goto CVIR
endiff
screen 20 4
color %HF on %WB
input Input Scanoptions: %%SCO2
iff "%SCO2"=="" then
set AS2=-
set SO2=
goto BEGIN
else
set AS2=+
set SO2=y
endiff
goto BEGIN
endiff
goto PART1
:CVIR
color %MF on %MB
sp 7 61 %WF on %WB
sp 7 63 %SF on %SB %@UPPER[%@NAME[%VI].%@EXT[%VI]]
iff "%VC"=="F-PROT" then
sp 7 63 %SF on %SB %@UPPER[%@NAME[%VI].%@EXT[%VI]]
sp 7 74 %SF on %SB %AS
elseiff "%VC"=="McAfee" then
sp 7 63 %SF on %SB %@UPPER[%@NAME[%VI].%@EXT[%VI]]
sp 7 74 %SF on %SB %AS1
elseiff "%VC" != "McAfee" .and. "%VC" != "F-PROT" then
sp 7 63 %SF on %SB %@UPPER[%@NAME[%VI].%@EXT[%VI]]
sp 7 74 %SF on %SB %AS2
endiff
db 18 2 21 76 1 %BF on %BB fill %WB sha
sp 19 4 %WF on %WB Current Path: %@upper[%_CWDS]
sp 20 4 %WF on %WB Destinationpath: %@upper[%DST]
goto START2
:STEM
set $T=
set TP=
db 18 2 21 76 4 %BF on %BB fill %WB sha
sp 19 3 %WF on %WB Current Tempdirectory: %@UPPER[%$T]
sp 20 3 %WF on %WB New Tempdirectory: %@UPPER[%$T]:\$4TEMP
color %WF on %WB
screen 20 26
inkey /K"ABCDEFGHIJKLMNOPQRSTUVWXYZ" %%$T
set $T=%@UPPER[%$T:\$4TEMP]
color %MF on %MB
sp 24 0 %MF on %MB
sp 9 61 %WF on %WB
sp 9 63 %SF on %SB %@UPPER[%$T]
set TP=Y
goto PART
:SETCOL
set SU=
screen 23 1
set COL=%@SELECT[%HP%setcol.dat,4,47,16,76,Select Colorset]
set COL=%@SUBSTR[%COL,1,3]
if "%COL"=="" goto START
if "%COL"=="Def" set /R %HP%default.col
if "%COL"=="Mon" set /R %HP%b&w.col
if "%COL"=="Oce" set /R %HP%ocean.col
if "%COL"=="Ter" set /R %HP%terra.col
if "%COL"=="Woo" set /R %HP%wood.col
if "%COL"=="Cus" goto SCOL
goto BEGIN
:SDIR
set DP=
set $D=%DST
db 18 2 21 76 4 %BF on %BB fill %WB sha
sp 19 3 %WF on %WB Current Destinationdirectory: %@UPPER[%DST]
sp 20 3 %WF on %WB New Destinationdirectory:
color %HF on %WB
screen 20 29
input %%DST
if "%DST"=="" set DST=%$D
set $D=
color %MF on %MB
if %@len[%DST] GT 12 set DST=...%@substr[%DST,9,-9]
sp 24 0 %MF on %MB
sp 11 61 %WF on %WB
sp 11 63 %SF on %SB %@UPPER[%DST]
set DP=Y
goto PART
:SCOL
set CC=
screen 23 1
set CC=N
set OPT=%@SELECT[%HP%col.dat,4,47,17,76,Select Colors]
set OPT=%@SUBSTR[%OPT,6,6]
if "%OPT"=="" goto START
iff "%OPT"=="Backgr" then
set OPT=%@select[%HP%colors.dat,4,47,16,76,Main Background]
set CC=Y
set SU=%@SUBSTR[%opt,1,3]
if "%SU"=="" set SU=%MB
if "%SU"=="bri" goto SCOL
set MB=%SU
goto BEGIN
set CC=N
goto SCOL
elseiff "%OPT"=="r Fore" then
set OPT=%@select[%HP%colors.dat,4,47,16,76,Border Foreground]
set CC=Y
set SU=%@SUBSTR[%opt,1,10]
if "%SU"=="" set SU=%BF
set BF=%SU
goto BEGIN
set CC=N
goto SCOL
elseiff "%OPT"=="r Back" then
set OPT=%@select[%HP%colors.dat,4,47,16,76,Border Background]
set CC=Y
set SU=%@SUBSTR[%opt,1,3]
if "%SU"=="" set SU=%BB
if "%SU"=="bri" goto SCOL
set BB=%SU
goto BEGIN
set CC=N
goto SCOL
elseiff "%OPT"=="w Fore" then
set OPT=%@select[%HP%colors.dat,4,47,16,76,Windows Foreground]
set CC=Y
set SU=%@SUBSTR[%opt,1,10]
if "%SU"=="" set SU=%WF
set WF=%SU
goto BEGIN
set CC=N
goto SCOL
elseiff "%OPT"=="w Back" then
set OPT=%@select[%HP%colors.dat,4,47,16,76,Windows Background]
set CC=Y
set SU=%@SUBSTR[%opt,1,3]
if "%SU"=="" set SU=%WB
if "%SU"=="bri" goto SCOL
set WB=%SU
goto BEGIN
set CC=N
goto SCOL
elseiff "%OPT"==" Foreg" then
set OPT=%@select[%HP%colors.dat,4,47,16,76,Title Foreground]
set CC=Y
set SU=%@SUBSTR[%opt,1,10]
if "%SU"=="" set SU=%TF
set TF=%SU
goto BEGIN
set CC=N
goto SCOL
elseiff "%OPT"==" Backg" then
set OPT=%@select[%HP%colors.dat,4,47,16,76,Title Background]
set CC=Y
set SU=%@SUBSTR[%opt,1,3]
if "%SU"=="" set SU=%TB
if "%SU"=="bri" goto SCOL
set TB=%SU
goto BEGIN
set CC=N
goto SCOL
elseiff "%OPT"=="ight F" then
set OPT=%@select[%HP%colors.dat,4,47,16,76,Highlight Foreground]
set CC=Y
set SU=%@SUBSTR[%opt,1,10]
if "%SU"=="" set SU=%HF
set HF=%SU
goto BEGIN
set CC=N
goto SCOL
elseiff "%OPT"=="ight B" then
set OPT=%@select[%HP%colors.dat,4,47,16,76,Highlight Background]
set CC=Y
set SU=%@SUBSTR[%opt,1,3]
if "%SU"=="" set SU=%HB
if "%SU"=="bri" goto SCOL
set HB=%SU
goto BEGIN
set CC=N
goto SCOL
elseiff "%OPT"=="ngs Fo" then
set OPT=%@select[%HP%colors.dat,4,47,16,76,Settings Foreground]
set CC=Y
set SU=%@SUBSTR[%opt,1,10]
if "%SU"=="" set SU=%SF
set SF=%SU
goto BEGIN
set CC=N
goto SCOL
elseiff "%OPT"=="ngs Ba" then
set OPT=%@select[%HP%colors.dat,4,47,16,76,Settings Background]
set CC=Y
set SU=%@SUBSTR[%opt,1,3]
if "%SU"=="" set SU=%SB
if "%SU"=="bri" goto SCOL
set SB=%SU
goto BEGIN
set CC=N
goto SCOL
endiff
goto BEGIN
:PART
if "%AR"=="PKZIP" sp 5 63 %SF on %SB PKZIP %G1
if "%AR"=="ARJ" sp 5 63 %SF on %SB ARJ %G2
if "%AR"=="LHA" sp 5 63 %SF on %SB LHA
if "%AR"=="PKPAK" sp 5 63 %SF on %SB PKPAK %G3
if "%AR"=="ZOO" sp 5 63 %SF on %SB ZOO
sp 9 63 %SF on %WB %$T
set DDT=%DST
if %@len[%DST] GT 12 set DDT=...%@substr[%DST,9,-9]
sp 11 63 %SF on %SB %@UPPER[%DDT]
db 18 2 21 76 1 %BF on %BB fill %WB sha
sp 18 34 %BF on %BB Messages
sp 19 4 %WF on %WB Current Path: %@upper[%_CWDS]
sp 20 4 %WF on %WB Destinationpath: %@upper[%DST]
color %MF on %MB
sp 24 0 %MF on %MB
goto START
:PART1
db 18 2 21 76 1 %BF on %BB fill %WB sha
sp 18 34 %BF on %BB Messages
sp 19 4 %WF on %WB Current Path: %@upper[%_CWDS]
sp 20 4 %WF on %WB Destinationpath: %@upper[%DST]
color %MF on %MB
sp 7 63 %WB on %WB
goto START2
:PART2
db 18 2 21 76 1 %BF on %BB fill %WB sha
sp 18 34 %BF on %BB Messages
sp 19 4 %WF on %WB Current Path: %@upper[%_CWDS]
sp 20 4 %WF on %WB Destinationpath: %@upper[%DST]
color %MF on %MB
goto START2
:MSG
db 18 2 21 76 1 %BF on %BB fill %WB sha
sp 19 40 bli %HF on %WB NO ARCHIVES IN THIS PATH !!!
sp 20 40 bli %WF on %WB Nothing to do. Taking a nap...
pause >NUL
goto PART2
:REN
cls %MF on %MB
db 5 25 10 55 3 %BF on %BB fill %WB sha exp
sp 6 28 bli %HF on %WB ARCHIVE ALREADY EXISTS !!
sp 8 27 %WF on %WB Input new Name:
sp 9 27 %WF on %WB (─┘ for updating Archive)
color bri whi on %WB
screen 8 43
input %%AN1
color %MF on %MB
sp 24 0 %MF on %MB
if "%AN1"=="" set AN1=%AN
set AN=%AN1
return
:REN1
cls %MF on %MB
db 5 25 10 57 3 %BF on %BB fill %WB sha exp
sp 6 29 bli %HF on %WB ARCHIVE ALREADY EXISTS !!
sp 8 27 %WF on %WB Input new Name:
sp 9 27 %WF on %WB (─┘ for overwriting Archive)
color bri whi on %WB
screen 8 43
input %%NEW
color %MF on %MB
sp 24 0 %MF on %MB
if "%NEW"=="" set NEW=%@NAME[%TAR]
screen 20 10
ren /q *.%MOD %NEW.%MOD
return
:EXIT
screen 23 1
if exist %HP%*.tmp del /q %HP%*.tmp
if exist %HP%*.sav del /q %HP%*.sav
if "%_CWDS"=="%$T" cd\
rd %$T >NUL
endlocal
cls
cancel