home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1995 November
/
PCWK1195.iso
/
inne
/
podstawy
/
dos
/
4dos
/
4uzytki
/
4dtnt.exe
/
DO.ZIP
/
DO.BTM
next >
Wrap
Text File
|
1991-10-09
|
3KB
|
130 lines
@ECHO off
if k%1 == k quit
goto %1
quit
:buscor
to business
set dr=%@substr[%_cwd,0,2]
fr
rsav 94
ks 0 17 "c"
if not exist %dr%\business\%2 ks 0 27 "b"
ws %dr%\business\%2
rset
cls
unset dr
quit
rem
:letter
to tackett
set dr=%@substr[%_cwd,0,2]
fr
rsav 94
ks 0 17 "c"
if not exist %dr%\tackett\%2 ks 0 27 "p"
ws %dr%\tackett\%2
rset
cls
unset dr
quit
rem
:homemo
set memoname=%@substr[%_date,0,2]%@substr[%_date,3,2]%@substr[%_date,6,2]
iff exist %ramd%%memoname% then
ks 0 27 "a" 17 "c"
else
ks 0 27 "a" 27 "@"
endiff
rsav 94
ws %ramd%%memoname%
rset
cls
unset memoname
quit
rem
:packbas
:packcob
if .%2 == . quit
to vsource
set dr=%@substr[%_cwd,0,2]
fr
to hobuff
set drh=%@substr[%_cwd,0,2]
fr
set fname=%@name[%2]
if not exist %drh%\hobuff\%fname%.asc quit
erase %dr%\vsource\%fname%.%@substr[%1,4,3]
leftn 6 %drh%\hobuff\%fname%.asc %dr%\vsource\%fname%.%@substr[%1,4]
goto packup
:packasm
:packpro
:packc
to vsource
set dr=%@substr[%_cwd,0,2]
fr
to hobuff
set drh=%@substr[%_cwd,0,2]
fr
if .%2 == . quit
set fname=%@name[%2]
if not exist %drh%\hobuff\%fname%.asc quit
erase %dr%\vsource\%fname%.%@substr[%1,4,3]
squoze 72 %drh%\hobuff\%fname%.asc %dr%\vsource\%fname%.%@substr[%1,4]
:packup
if not exist %dr%\vsource\%fname%.%@substr[%1,4] quit
if not %@filesize[%dr%\vsource\%fname%.%@substr[%1,4,3],B] gt 0 quit
erase %drh%\hobuff\%fname%.asc
unset fname
quit
:vsedit
to vsource
set dr=%@substr[%_cwd,0,2]
fr
to hobuff
set drh=%@substr[%_cwd,0,2]
fr
if .%2 == . quit
unset ext >& nul
set ext=%@lower[%@ext[%2]]
set fname=%@name[%2]
if .%ext% ne . goto chkext
if not exist %dr%\vsource\%fname%.* goto chkext
set tabch="c"
set ext=bas
if exist %dr%\vsource\%fname%.bas goto doedit
set ext=cob
if exist %dr%\vsource\%fname%.cob goto doedit
set tabch="a"
set ext=asm
if exist %dr%\vsource\%fname%.asm goto doedit
set ext=pro
if exist %dr%\vsource\%fname%.pro goto doedit
set ext=c
if exist %dr%\vsource\%fname%.c goto doedit
unset ext
:chkext
set tabch="a"
if .%ext% == .asm .or. .%ext% == .pro .or. .%ext% == .c goto doedit
set tabch="c"
if .%ext% == .cob .or. .%ext% == .bas goto doedit
input Enter extension BAS, ASM, PRO, COB, or C %%ext
if .%ext% ne . set ext=%@lower[%ext%]
goto chkext
:doedit
if exist %dr%\vsource\%fname%.%ext% copy %dr%\vsource\%fname%.%ext% %ramd%
if .%ext% ne .pro toggle C >& NUL
rsav 60
ks 0 27 %tabch%
ws %ramd%%fname%.%ext%
if not exist %ramd%%fname%.%ext% quit
filter9 < %ramd%%fname%.%ext% > %dr%\vsource\%fname%.%ext%
erase %drh%\hobuff\%fname >& NUL
if %tabch% == "c" rightn 6 %dr%\vsource\%fname%.%ext% %drh%\hobuff\%fname
if %tabch% == "a" filter9 < %ramd%%fname%.%ext% > %drh%\hobuff\%fname%
erase %ramd%%fname%.%ext% >& NUL
unset fname ext tabch dr drh
rset
toggle c >& NUL
cls
quit