I would like to check wether my database exists or not before (re)creating it.
The name of that db is a string variable which depends of an other string variable and I use the support function @fileexist. My problem is that @fileexist always returns 0, saying the file does not exist even if it's actually existing.
More precisely, my code is as follows
Code: Select all
%name1="name1"
%name2="\\...\name2{%name1}.edb"
if @fileexist(%name2) then
dbdelete %name2
dbcreate %name2
else
dbcreate %name2
endif
Thanks a lot !
Loulouviews
