home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Der Mediaplex Sampler - Die 6 von Plex
/
6_v_plex.zip
/
6_v_plex
/
DISK5
/
DOS_01
/
4DVC31.ZIP
/
4DVC.BTM
next >
Wrap
Text File
|
1991-01-04
|
12KB
|
242 lines
@echo off
setlocal
unalias *
cls
set VCAUTO=
set VCPATH=%@search[4DVCCHK.BTM]
iff "%VCPATH" EQ "" then
echo Cannot locate 4DVCCHK.BTM
echo This file needs to either be in your current directory
echo (%_CWD)
echo or in one of the directories specified in your PATH Environment Variable.
set VCPATH=
quit
else
call 4DVCCHK.BTM
endiff
:VCENTRY
iff "%VCAUTO" NE "" then
set VCAUTO=
cls
quit
endiff
drawbox 00 00 24 79 0 bri whi on blu fill blu
drawbox 00 16 10 63 2 bri whi on red fill red
scrput 01 18 bri whi on red ` ▄██ ██▀▀▀▀▀█▄ ██ ██ ▄█▀▀▀▀█▄ `
scrput 02 18 bri whi on red ` ▄█▀██ ██ ██ ██ ██ ██ ▀█`
scrput 03 18 bri whi on red ` ▄█▀ ██ ██ ██ ██ ██ ██ `
scrput 04 18 bri whi on red `▄█▀ ██ ██ ██ ██ ██ ██ `
scrput 05 18 bri whi on red `██▄▄▄▄▄██▄▄ ██ ██ ██ ██ ██ `
scrput 06 18 bri whi on red ` ██ ██ ██ ████ ██ ▄█`
scrput 07 18 bri whi on red ` ██ ██▄▄▄▄▄█▀ ██ ▀█▄▄▄▄█▀ `
scrput 09 34 bri whi on red Version 3.10
drawbox 01 00 09 15 4 yel on bla fill bla
scrput 02 06 bri yel on bla 4DOS
scrput 03 05 bri yel on bla Version
scrput 04 05 bri yel on bla Control
scrput 05 02 yel on bla A Poor-Man's
scrput 06 05 yel on bla Version
scrput 07 05 yel on bla Control
scrput 08 05 yel on bla System
drawbox 01 64 09 79 4 yel on bla fill bla
scrput 02 66 bri yel on bla Released to
scrput 03 65 bri yel on bla Public-Domain
scrput 05 67 bri yel on bla 10/22/90
scrput 07 66 yel on bla by Ric Naff
scrput 08 66 yel on bla Dallas, TX
drawbox 11 15 22 64 4 bri whi on blu fill blu
scrput 12 17 bri whi on blu A Add files to Version-Control Archive
scrput 14 17 bri whi on blu X Xtract files from Version-Control Archive
scrput 15 21 whi on blu (This will create/overlay existing files)
scrput 17 17 bri whi on blu K Kill files in Version-Control Archive
scrput 19 17 bri whi on blu P Pack archive files (use after Kill)
scrput 21 17 bri whi on blu I Information about 4DVC
drawvline 11 19 12 2 bri whi on blu
drawhline 13 15 50 1 bri whi on blu
drawhline 16 15 50 1 bri whi on blu
drawhline 18 15 50 1 bri whi on blu
drawhline 20 15 50 2 bri whi on blu
scrput 23 19 bri whi on red Your Choice (A X K P I or Enter to quit)?
:VCTOP
screen 23 60
iff "%1" NE "" then
set VCRESP=%1
shift
set VCAUTO=X
else
inkey /W180 %%VCRESP
endiff
iff "%VCRESP" EQ "" then
cls
quit
endiff
set VCRESP=%@upper[%VCRESP]
if "%VCRESP" EQ "A" goto VCADD
if "%VCRESP" EQ "X" goto VCXTR
if "%VCRESP" EQ "K" goto VCKILL
if "%VCRESP" EQ "P" goto VCPAK
if "%VCRESP" EQ "I" goto VCINQ
if "%VCRESP" EQ "" quit
set VCAUTO=
shift %#
goto VCTOP
:VCADD
unset VCRESP
cls
drawbox 00 00 24 79 0 bri whi on blu fill blu
scrput 01 00 bri whi on red ` ADD file(s) to an archive. `
scrput 02 01 bri whi on blu Enter File-Specs for SELECT or press ENTER to accept defaults:
scrput 03 00 whi on blu [ ]
scrput 05 00 whi on blu Example: *.C *.H *.MAK *.BAT *.BTM
scrput 06 00 whi on blu The above will SELECT all files that end in C, H, MAK, BAT, and BTM.
scrput 07 00 whi on blu You will then be given a 4DOS SELECT screen to individually mark those files
scrput 08 00 whi on blu which you actually want to archive.
scrput 10 00 whi on blu Defaults:
scrput 11 00 whi on blu *.C?? *.H?? *.ASM *.PAS *.COB *.FOR *.BAT *.BTM *.MAK *.DOC *.DAT
screen 03 01 ` `
screen 03 01
iff "%1" NE "" then
set VCRESP=%1&
shift %#
else
input /W180 %%VCRESP
endiff
iff "%VCRESP" EQ "" then
call 4DVCBKUP *.C?? *.H?? *.ASM *.PAS *.COB *.FOR *.BAT *.BTM *.MAK *.DOC *.DAT
else
call 4DVCBKUP %VCRESP
endiff
goto VCENTRY
:VCXTR
unset VCRESP
cls
drawbox 00 00 24 79 0 bri whi on blu fill blu
scrput 01 00 bri whi on red ` XTRACT file(s) from an archive. `
scrput 02 01 bri whi on blu Enter File-Specs for SELECT or press ENTER to accept defaults:
scrput 03 00 whi on blu [ ]
scrput 05 00 whi on blu Example: C H MAK
scrput 06 00 whi on blu The above will process archive files 4DVCC.ZIP 4DVCH.ZIP and 4DVCMAK.ZIP.
scrput 07 00 whi on blu You will then be given a 4DOS SELECT screen to individually mark those files
scrput 08 00 whi on blu which you actually want to extract from the archive files.
scrput 10 00 whi on blu Defaults:
scrput 11 00 whi on blu C?? H?? ASM PAS COB FOR BAT BTM MAK DOC DAT
scrput 13 00 bri whi on red ` CAUTION: During the extraction process, any existing file will be overlaid by `
scrput 14 00 bri whi on red ` the extracted file. Also, files are extracted in the order processed by the `
scrput 15 00 bri whi on red ` 4DOS SELECT statement, so if more than one file of the same name is extracted, `
scrput 16 00 bri whi on red ` only the last one extracted will be 'current'. `
scrput 18 00 whi on blu Optional File-Specs Format:
scrput 19 03 whi on blu If you use only the extensions of files (as in the defaults above), then
scrput 20 03 whi on blu all files in each archive are presented in the SELECT statement. Thus,
scrput 21 03 whi on blu entering "ASM" above will present all versions of all files in 4DVCASM.ZIP.
scrput 22 03 whi on blu However, if you enter a filename+extension ("ABC*.ASM"), then only the
scrput 23 03 whi on blu versions of ABC*.ASM are presented in the SELECT. You may mix-and-match
scrput 24 03 whi on blu both forms of file-specs.
screen 03 01 ` `
screen 03 01
iff "%1" NE "" then
set VCRESP=%1&
shift %#
else
input /W180 %%VCRESP
endiff
iff "%VCRESP" EQ "" then
call 4DVCXTRC C?? H?? ASM PAS COB FOR BAT BTM MAK DOC DAT
else
call 4DVCXTRC %VCRESP
endiff
goto VCENTRY
:VCKILL
unset VCRESP
cls
drawbox 00 00 24 79 0 bri whi on blu fill blu
scrput 01 00 bri whi on red ` KILL (Delete) file(s) in an archive. `
scrput 02 01 bri whi on blu Enter File-Specs for SELECT or press ENTER to accept defaults:
scrput 03 00 whi on blu [ ]
scrput 05 00 whi on blu Example: C H MAK
scrput 06 00 whi on blu The above will process archive files 4DVCC.ZIP 4DVCH.ZIP and 4DVCMAK.ZIP.
scrput 07 00 whi on blu You will then be given a 4DOS SELECT screen to individually mark those files
scrput 08 00 whi on blu which you actually want to remove from the archive files.
scrput 10 00 whi on blu Defaults:
scrput 11 00 whi on blu C?? H?? ASM PAS COB FOR BAT BTM MAK DOC DAT
scrput 13 00 whi on blu Optional File-Specs Format:
scrput 14 03 whi on blu If you use only the extensions of files (as in the defaults above), then
scrput 15 03 whi on blu all files in each archive are presented in the SELECT statement. Thus,
scrput 16 03 whi on blu entering "ASM" above will present all versions of all files in 4DVCASM.ZIP.
scrput 17 03 whi on blu However, if you enter a filename+extension ("ABC*.ASM"), then only the
scrput 18 03 whi on blu versions of ABC*.ASM are presented in the SELECT. You may mix-and-match
scrput 19 03 whi on blu both forms of file-specs.
screen 03 01 ` `
screen 03 01
iff "%1" NE "" then
set VCRESP=%1&
shift %#
else
input /W180 %%VCRESP
endiff
iff "%VCRESP" EQ "" then
call 4DVCDLET C?? H?? ASM PAS COB FOR BAT BTM MAK DOC DAT
else
call 4DVCDLET %VCRESP
endiff
goto VCENTRY
:VCPAK
cls
set VCRESP=
iff not exist 4DVC???.ZIP then
shift %#
echo
echo There are no 4DVC archive files in the current directory to PACK.
pause
goto VCENTRY
endiff
drawbox 00 00 24 79 0 bri whi on blu fill blu
scrput 01 00 bri whi on red ` PACK version numbers in an archive. `
scrput 02 00 bri whi on blu Before proceding, you should note that this function can take a long time
scrput 03 00 bri whi on blu if the archive file you SELECT has lots of data in it.
scrput 05 03 whi on blu The purpose of this function is to "reduce" the version numbers of your
scrput 06 03 whi on blu archived files to a range of "1" to "number-of-versions". For example,
scrput 07 03 whi on blu after adding and killing multiple versions of your file, you might wind-up
scrput 08 03 whi on blu with versions 4, 12, 13, and 19. By running PACK, these versions are
scrput 09 03 whi on blu "renamed" to 1, 2, 3, and 4 respectively. The next version you add will
scrput 10 03 whi on blu be version 5. This comes in handy if you add/kill a lot.
scrput 12 03 whi on blu Press a key and you will be given a list of 4DVC archive files to SELECT.
scrput 13 03 whi on blu For each archive you select, the PACK function will run automatically and
scrput 14 03 whi on blu "reduce" your version numbers. This can take a long time, so run it while
scrput 15 03 whi on blu you will be away from your computer for a while.
scrput 17 03 whi on blu The basic process is: 1) unzip *ALL* of the files in the 4DVC archive,
scrput 18 03 whi on blu 2) attach comments to those files (taken out of the archive), 3) run
scrput 19 03 whi on blu through all of the files and reduce version numbers to an inclusive range
scrput 20 03 whi on blu (a little special handling on version ".000"), 4) ZIP ALL of the new files
scrput 21 03 whi on blu (and their comments), and 5) if everything went OK, overlay the original
scrput 22 03 whi on blu 4DVC archive.
screen 22 16
iff "%VCAUTO" NE "" then
shift %#
else
input /W180 %%VCRESP
set VCRESP=
endiff
echo ================================================================================ >&! 4DVCPACK.0
echo 4DVC-PACK: Results of Archive File Reduction (%_DATE %_TIME): >> 4DVCPACK.0
echo ================================================================================ >>&! 4DVCPACK.0
echo >>&! 4DVCPACK.0
select call 4DVCPACK.BTM (4DVC???.ZIP)
list 4DVCPACK.0
del /q 4DVCPACK.0 >&! NUL
goto VCENTRY
:VCINQ
if "%1" NE "" shift %#
set VCPATH=%@search[4DVCREAD.ME]
iff "%VCPATH" NE "" then
list %VCPATH
set VCPATH=
goto VCENTRY
else
cls
echo
echo Cannot locate 4DVCREAD.ME in your PATH Environment Variable.
echo It, and all other 4DVC*.BTM files need to be in a directory which
echo is included in your PATH environment variable.
quit
endiff