home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
MFMP110A.ZIP
/
MFMCOPY.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1992-05-31
|
1KB
|
40 lines
(*#module(turbo_comp=>off)*)
Implementation Unit MfmCopy;
IMPORT
DOS,
TURBODOS(pathstr)
{ TURBOSYS(_R_BLOCKREAD,_R_BLOCKWRITE)}
;
Type
BufPtrType = ^BufRecordType;
BufRecordType = Record
Next : BufPtrType;
Buffer : Array[1..7FFFH] Of Byte;
NumRead : Word;
End;
Var
InFile, OutFile : FILE OF char;
NumRead, NumWritten : Word;
FromFileName, ToFileName : PathStr;
zstrin, zstrout : array[1..256] of char;
cpymode, cpyrtn, rsrvd : word;
Current, First, Old : BufPtrType;
TimeTransfer : INTEGER;
{========================================================================}
Procedure DoFileCopy { (FromFileName, ToFileName : PathStr); };
Begin
StrToZ(FromFileName, zstrin);
StrToZ(ToFileName, zstrout);
cpymode := 0;
cpyrtn := DOS.COPY(zstrin, zstrout, cpymode, rsrvd);
{ GetFTime(InFile,TimeTransfer); SetFTime(OutFile,TimeTransfer); }
{ Close(InFile); }
{ Close(OutFile); }
End;
{========================================================================}
End.
{========================================================================}