Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!seismo!gatech!akgua!akguc!mtune!mtuxo!houxm!ihnp4!inuxc!pur-ee!ecn-pc!sandersr From: sandersr@ecn-pc.UUCP (Robert C Sanders) Newsgroups: net.wanted.sources,net.unix,net.micro.pc Subject: Re: Does anyone have the source for a PD cp? Message-ID: <539@ecn-pc.UUCP> Date: Wed, 2-Jul-86 03:36:19 EDT Article-I.D.: ecn-pc.539 Posted: Wed Jul 2 03:36:19 1986 Date-Received: Fri, 4-Jul-86 19:14:35 EDT References: <220@killer.UUCP> <978@decuac.DEC.COM> Reply-To: sandersr@ecn-pc.UUCP (Robert C Sanders) Organization: Electrical Engineering Department , Purdue University Lines: 31 Xref: watmath net.wanted.sources:2497 net.unix:8510 net.micro.pc:8984 In article <978@decuac.DEC.COM> avolio@decuac.DEC.COM (Frederick M. Avolio) writes: >> Does anyone have the source code for a Public Domain cp? I'm wanting to >> write one for my IBM AT to compile and use under DOS, but I don't have the >> slightest idea how to do it right. Thanks in advance. > >open first file (checking for errors ... bailout if necessary) >creat second file (checking for errors ... bailout if necessary) >while (read a buffer from first file) is greater than 0, > write a buffer to second file (check for errors..) >exit > Or even easier yet, under PC/MS DOS, a simple shell script of the form: copy %1 %2 %3 %4 %5 in a file entitled "cp.bat". Unfortuately, you don't get all the options of the UNIX version, but remember, you are talking about PC DOS. Forward all replies to the net.micro.pc newgroup. - bob -- ------------ Continuing Engineering Education Telecommunications Purdue University "Time is a mouse that requires constant feeding..." -- me ...!ihnp4!pur-ee!pc-ecn!sandersr