home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1995 November
/
PCWK1195.iso
/
inne
/
podstawy
/
dos
/
4dos
/
4uzytki
/
bkup12.exe
/
BKUP.BTM
< prev
next >
Wrap
Text File
|
1995-04-21
|
1KB
|
60 lines
:: BKUP.BTM
:: Implements different BKUP parameters for different computers.
:: This allows avoiding local editing of aliases or BKUP.INI for each
:: computer. It also allows upgrading BKUP by putting the name of the
:: version used at the line below.
::
:: I use it with the following aliases:
:: bk=bkup bk, bx=bkup bx, bku=bkup bku, bxu=bkup bxu
:: This batch branches according to specific names of MY computers.
:: You must of course change that to suit your configuration.
:: Itamar Even-Zohar (itamarez@plato.tau.ac.il)
set bkp=bkup12
rem ^^^^^^(current bkup version)
set cmn=%@label[%_boot]
set drv=%_disk
iff .%cmn==.notebook then
rem ^^^^^^^^ (in this computer there's only 1 floppy)
set floppy=a:
else
set floppy=b:
endiff
gosub check_drive
if .%1==.bx .or. .%1==.bxu set bkp=%bkp x
goto %1
:bk
:bx
shift
call %bkp %drv: %floppy %&
goto quit
:BKU
:BXU
shift
call %bkp %drv: %floppy /uc %&
goto quit
:quit
unset drv cmn floppy bkp rep >&>nul
quit
:: ----------- Sub-Routines -----------
:check_drive
if %_4ver lt 5 (echo This batch works on 4DOS 5 and above^goto quit)
iff %@removable[%drv] eq 1 .and. %@cdrom[%drv] eq 0 .and. %@remote[%drv] eq 0 .and. %@ready[%drv] eq 1 then
gosub ask
else
return
:ask
inkey /K"YN" %@upper[%drv:] is a ram drive -- proceed? %%rep
if .%rep==.Y return
if .%rep==.N goto quit
:: -------- End of Sub-Routines -------