FileExists

<< Click to Display Table of Contents >>

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

FileExists

available from build: 20140416

Description

This command checks the existence of a given file.

Syntax

call DBWShell("FileExists FullFilePath")

Parameters

FullFilePath

the full path name of the file to check the existence of

Remarks

This command is DBWAclServer compliant

Results

@OK_FILE_EXISTS

1: if the file exists
0:otherwise

Example

DBWShell("FileExists c:\temp\file1.doc")

res = DBWResult("@OK_FILE_EXISTS")
if res then
 dbwmsgbox "The file exists"
else
 dbwmsgbox "The file doesn't exist"
end if