How check for "path/file exists"?

new topic     » topic index » view thread      » older message » newer message

Wolf, all,

How can I check for whether a specified "path/file" exists??

I'm trying to use Wolf's "jumpto" (or perhaps his "ShellExecute2") to run
another program from within my program (to jump to it); when this is a
program with a "stable" path, no problem.  But I'm wanting to be able to
jump to Wolf's tutorial, which isn't always at a known place in the Euphoria
folder, so I need to be able to *test* for whether the path/file I
tentatively specify actually exists or not, so I can activate the "open
file" dialog if it doesn't.

I changed Wolf's "jumpto" to a function, thinking to use the return as a
test, but while it worked if the path was correct, when the path/file wasn't
correct it just bombed & output an error message about "can't open file".

Any thoughts?

Dan Moyer

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu