Re: [fpc-pascal] DOS find

2006-02-03 Thread Adam Naumowicz
On Fri, 3 Feb 2006, DONALD PEDDER wrote:

> Even when nothing is found I still get return code 0! :-\ I need to
> know how many strings were found (or at a minimum if none were found,
> which should theoretically have a non-zero return code. I know it does
> in NT, but at home in DR-DOS/MS-DOS "echo %errorlevel%" isn't working, so
> I can't see directly what return code it's giving, though I'm pretty
> sure it wouldn't be 0 if nothing was found).

You should try

IF ERRORLEVEL 1 echo blah, blah

In this way you will check if the errorlevel is greater or equal 1.

Hope this helps,

Adam Naumowicz

==
Department of Applied Logicfax. +48 (85) 745-7662
Institute of Computer Science  tel. +48 (85) 745-7559 (office)
University of Bialystoke-mail: [EMAIL PROTECTED]
Sosnowa 64, 15-887 Bialystok, Poland   http://math.uwb.edu.pl/~adamn/
==


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Error when compiled !!!

2006-02-03 Thread Jonas Maebe


On 3 feb 2006, at 08:16, Ryo T wrote:


I've compiled free pascal IDE included in the
freepascal package but it always say that a file named
"sysunixh.inc" not found. Where can I find the file
???
For that troubleshoot i have include the error
(captured from linux console).


First go to /usr/local/src/fpc-1.0.10/rtl and build the rtl. 1.0.10  
is a very old version though.



Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal