Re: 4gl check a file on the system
Posted in 2000
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