home *** CD-ROM | disk | FTP | other *** search
- (*#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.
- {========================================================================}