Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Colin McGrath — — source: Informix-list mailing list archive (1991-1998)
How about:
define str char(512)
define ret_val smallint
let str = "test -f testexec.log"
run str returning ret_val
if ret_val = 0 then
display "file testexec.log exists"
else
display "file testexec.log not found"
end if
Rene Bagia wrote:
>
> Hallo,
>
> please help my, how can i check the validity from a file on my DB-Server
> filesystem direkt from my 4gl program like:
>
> if exists "c:\\temp\\ho.txt"
> then
>
> Thanks
> best reguards
> Rene
--
Colin
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.