Description
Check whether a certain file exists on the local disk.
Syntax
.FileExists(fileName);
Parameters
<string>
fileName
: specifies the absolute path of the file to be checked.
Return value
bool
true
indicates success. false
indicates failure.
When false
is returned, check ErrorCode
or ErrorString
for error information.
Example
DWObject.FileExists("C:\\DWT\\WebTWAIN.jpg");