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.
create a table e.g. file_exists (status integer);
Then create a shell script. e.g. file_exists.sh
This file would have statement like this
if [ -f 'c:\\temp\\ho.txt' ]
then
echo "insert into file_exists values(1)"|dbaccess dbname;
eles
echo "insert into file_exists values(0)"|dbaccess dbname;
If this is a multi-user system then you have to generate either table or
have an extra field in this table which could differentiate users.
In your 4gl
run "file_exists.sh"
Vivek
______________________________ Reply Separator _________________________________
Subject: 4gl check a file on the system
Author: rene (rene@bagia.de) at internet
Date: 8/10/00 3:16 AM
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
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.