Hello everyone,
I`ve got a question.
A main function in my database is to open files and it works great with Servoy thanks to this forum.
But now I want to check if a file exits before copying it (if I just copy it, it will create an empty file suggesting the copy was suceeded on windows)
However there is a function in Plugins / file / JSFile called "exists" but it gives me an error using it.
filepath is the name of a field containing the pathname generated by a vbs script.
If (filepath.exists())
Error message while running method
"Exists is no a function"
I`ve tried numberous different ways including JScript
var fso
fso = new ActiveXObject("Scripting.FileSystemObject")
If (fso.FileExits(filepath))
Error message while running
something about ActiveXObject not declares as a variable.
Can anyone help me with the correct syntax in servoy.
Many thanks in advance, Rene