Message-ID: <003101c0c133$bf647aa0$f208e289@mpaul> From: "Matthias Paul" To: References: <000f01c0c081$0231b4a0$3a3ae1c8 AT pcsaniii> Subject: Re: Problems with Clipper RUN command Date: Mon, 9 Apr 2001 20:16:06 +0200 Organization: Rechenzentrum RWTH Aachen MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id QAA14138 Reply-To: opendos AT delorie DOT com On 2001-04-09, Paulo Santana wrote: > dirmake (AV_DIR) > RUN COPY *.DBF &AV_DIR > NUL // Perform the copy > RUN COPY *.DBT &AV_DIR > NUL // > RUN COPY *.NTX &AV_DIR > NUL // > > However, the same code block, inside a larger program, > works as expected under MS-DOS, but NOT under DR-DOS. I´m no Clipper programmer at all, but what exactly "does not work as expected" under DR-DOS, and what kind of "larger program" is this you are speaking of? Without any clue on what goes wrong under what conditions, I´m afraid, we won´t be able to help tracking down the issue and fixing it. Can you step by step comment out other parts (for example, configuration stuff) of the larger program until the operation works as desired. If you can isolate a more specific trigger condition, I will probably be able to help. Since you call COMMAND.COM, it might be important to know the contents of the %COMSPEC% and %PATH% environment variables. Does the "large program" have any means to override default settings as they are in place in the small program? Maybe a problem with too less file handles available? Try omitting the "> NUL", but if this would not solve the problem, I suggest to replace this by ">\DEV\NUL:", anyway. This might be just a syntax issue of Clipper, but why do you use "AV_DIR" in dirmake(), and "&AV_DIR" in the other commands? I am assuming that something with the file copying does not work, what happens if you replace this by, for example, simple DIR or ECHO commands? Are they executed correctly? What happens if you replace the "dirmake(AV_DIR)", which presumably is used to create a directory, by something like "RUN MD &AV_DIR"? Hope it helps, Matthias ------------------------------------------------------------ Matthias Paul, Ubierstrasse 28, D-50321 Bruehl, Germany http://www.uni-bonn.de/~uzs180/mpdokeng.html ------------------------------------------------------------ My homepage has moved, please update your pointers.