X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "MikeC" Newsgroups: comp.os.msdos.djgpp References: <200709210020 DOT l8L0KG9G026658 AT envy DOT delorie DOT com> <46f3135a DOT 902791149 AT localhost> Subject: Re: How to copy a file? Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 Message-ID: Date: Fri, 21 Sep 2007 13:16:30 GMT NNTP-Posting-Host: 86.13.147.52 X-Complaints-To: http://netreport.virginmedia.com X-Trace: newsfe1-gui.ntli.net 1190380590 86.13.147.52 (Fri, 21 Sep 2007 14:16:30 BST) NNTP-Posting-Date: Fri, 21 Sep 2007 14:16:30 BST Organization: ntl Cablemodem News Service To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Thanks Gents, I'll give this a go. MikeC "Scott" wrote in message news:46f3135a DOT 902791149 AT localhost... > On Fri, 21 Sep 2007 00:31:07 GMT, in comp.os.msdos.djgpp, "MikeC" > wrote: > >>Why can't I do it with ... >> >>system(string); /* string contains "copy " */ > > My guess would be because "copy" isn't an executable program, it's an > alias > within the command processor. Try "command /c copy source dest". > > -Scott