| delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
| From: | "MikeC" <My_address AT end DOT of DOT post> |
| Newsgroups: | comp.os.msdos.djgpp |
| References: | <B1EIi.52071$rr5 DOT 11613 AT newsfe1-win DOT ntli DOT net> <200709210020 DOT l8L0KG9G026658 AT envy DOT delorie DOT com> <fhEIi.27$Qd2 DOT 7 AT newsfe6-win DOT ntli DOT net> <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: | <OuPIi.45808$6u5.42840@newsfe1-gui.ntli.net> |
| 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" <nobody AT xmission DOT com> wrote in message news:46f3135a DOT 902791149 AT localhost... > On Fri, 21 Sep 2007 00:31:07 GMT, in comp.os.msdos.djgpp, "MikeC" > <My_address AT end DOT of DOT post> wrote: > >>Why can't I do it with ... >> >>system(string); /* string contains "copy <source path> <dest path>" */ > > 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |