home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1995 November
/
PCWK1195.iso
/
inne
/
podstawy
/
dos
/
4dos
/
4uzytki
/
bkup12.exe
/
UPNAME.BTM
< prev
Wrap
Text File
|
1994-06-21
|
2KB
|
63 lines
:: UPNAME.BTM
: Runs as an auxiliary batch for BKUP.BTM in case you did not turn off
: in BKUP.INI the option for checking whether the diskette currently
: in the drive for creating an updates archive is the one normally
: designated for this purpose.
:: ==> NOTE: Make sure you have indeed labelled the relevant diskette.
if %_batch==1 (echo This routine is a procedure for BKUP.BTM^quit)
if .%updatename==.no quit
:: (abolished if BKUP.INI is set not to run this option.)
if .%updatedr==. gosub make_name
if .%@label[%dr]==.%updatedr quit
::setlocal
if .%otherdrive==.yes quit
:: (This prevents being asked for the second time if you wish
:: to send updates archives to a drive different from your regular
:: diskette.)
cls
screen 3 0
inkey /k"YN[ESC] [enter]" Diskette in %@upper[%dr:] is not %@upper["%updatedr"], continue (Y/Enter or N/Esc)? %%rep
iff %rep == Y .or. %rep == @28 then
set otherdrive=yes
quit
elseiff %rep == N .or. %rep == %@char[27] then
goto quit
endiff
:quit
echo Updating aborted
::endlocal
cancel
: ------sub-routines---------
:make_name
cls
screen 6 0
text
BKUP.BTM is set to check if the label of the diskette inserted
in the archive drive (normally A; or B:) matches the name defined
for an "updates diskette". If the name does not match, you are
given the choice between creating the archive on the diskette
currently in the drive and canceling the operation (you can of
course switch diskettes while BKUP waits for the answer). You can
define the name of your updates diskette in BKUP.INI, or cancel
this option altogether. The default definition is "TRANSMIT".
However, if the name is not defined, you can specify a name for
a single run now.
NOTE! Make sure you have indeed labelled the relevant diskette.
endtext
inkey /k"YNQ" Do you wish to indicate name of update diskette now (Y/N/Q)? %%rep
iff %rep == Y then goto path_name
elseiff %rep == N .or. %rep == Q then
quit
endiff
:path_name
input Type name of your updates diskette: %%updatedr
return
:----end of sub-routines-----