home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1995 November
/
PCWK1195.iso
/
inne
/
podstawy
/
dos
/
4dos
/
4uzytki
/
ez-btm11.exe
/
DESC.BTM
< prev
next >
Wrap
Text File
|
1993-12-09
|
3KB
|
114 lines
: DESC.BTM
: Finds all undescribed files and lets you either (1) describe
: them one by one, or, with the /L switch, (2) via a batch file
: created by it for your handling. When you have edited this file,
: running it will add all of the desired descriptions.
: Note: Adapt the name of the editor above ^^^^^ below.
: ====
:
: SYNTAX:
: DESC [/L|/H]
: where
: /L = 'make list'
: /H = Help & options
:
: Itamar Even-Zohar (B10@vm.tau.ac.il)
: Last edited September 5, 1992
: This batch was also integrated into DES.BTM (a storehouse of
: batch files for handling 4dos descriptions & DESCRIPT.ION files).
:--------------------------------------------------------------------------
setlocal
set und=addesc.btm
set edt=EX ed
rem ^^^^^ this calls a sub-program in EX, calling file via selected
rem editor. Either put your preferred editor name here, or
rem in EX.BTM.
iff exist %und then
del /q %und
endiff
iff %@index[%1,h] ge 0 then
goto help_desc
endiff
:desc_list
iff (%1)==(/l) then (echo @echo off^
echo rem ADDESC.BTM adds descriptions to undescribed files
echo rem Put the desired description between the quotes ("").^
echo rem Delete undesired filenames, then save & run batch^
echo echo Adding now descriptions. Wait ...^echo echo.^echo echo on^
echo :
echo :begin_list^
) >%und
endiff
:check_desc
for %f in (*.*) (
iff not "%@descript[%f]"=="" then
screen %_row 0
else
gosub descA
endiff
)
iff exist %und then set ech=
%edt %und
goto end
else
set ech=echo %0 terminated
endiff
:end
%ech
endlocal
quit
:----------------describing one by one------------------
:descA
iff (%1)==(/l) then echo describe %@lower[%f] "" >> %und
return
endiff
inkey /K"YNQH" Describe %f (Y/N/Q or H[elp])? %%rep
iff %rep == Y then
gosub desc2
return
elseiff %rep == N then
return
elseiff %rep == H then
goto help_desc
elseiff %rep == Q then
set ech=echo stopped by user
goto end
endiff
:desc2
screen %@eval[%_row-1] 0
describe %f
return
:-------help and selecting options-----
:help_desc
cls
text
syntax:
DESC [/L|/H]
where
/L = 'make list'
/H = Help & options
You can type descriptions for the undescribed files one file
after the other, or generate a batch file for all undescribed
files, ready for running.
Type L for generating a list
Type C for file by file describing
Type Q to quit
endtext
screen %@eval[%_row+1] 2
inkey /K"clq" Your choice? (C/L/Q) %%rep
iff %rep == Q then set ech=echo stopped by user^goto end
elseiff %rep == C then goto check_desc
elseiff %rep == L then set 1=/l ^goto :desc_list
endiff