DBWFileExists

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Library Reference > File >

DBWFileExists

Description

Check the existence of a file.

Syntax

Function DBWFileExists(Filename)

Parameters

Filename

It is the full path file name

Return Values

The function assumes value of

TRUE

If the file exists

FALSE

otherwise

Example

filename="c:\temp\foo.txt"
if DBWFileExists(filename) then
 msgbox "The file exists!"
else
 msgbox "Cannot find file."
end if