delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
Date: | Thu, 20 Sep 2007 20:47:55 -0400 |
Message-Id: | <200709210047.l8L0ltx8027296@envy.delorie.com> |
From: | DJ Delorie <dj AT delorie DOT com> |
To: | djgpp AT delorie DOT com |
In-reply-to: | <fhEIi.27$Qd2.7@newsfe6-win.ntli.net> (My_address@end.of.post) |
Subject: | Re: How to copy a file? |
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> |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
> system(string); /* string contains "copy <source path> <dest path>" */ > > ... as I tried? It compiles OK, and appears to execute when I single-step > the program under RHIDE, but it takes an instant - not a minute or more - > and the file doesn't get copied. I don't know what I'm doing wrong. Are you checking the error return? There is no "copy" system program, it's a shell built-in. DJGPP may not be able to access the same built-ins as the dos shell.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |