home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
CPM
/
TURBOPAS
/
WIPE.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
2000-06-30
|
521b
|
21 lines
program wipe_bak_files;
{
Delete CP/M-80 *.bak files while in Turbo environment.
Ue by block reading to top of Turbo progrm, running, and then block erase.
....Richard J. Hunter [70227,137]
June 13, 1985
}
const
delete = 19; {bdos delete file function}
var
fcb : string[12];
result : integer;
begin {main}
fcb:='?????????BAK';
fcb[1]:=char(0); {default drive}
result:=bdos(delete,addr(fcb[1]));
if result=255 then writeln('No files found!');
end. {main}