CeODAX.FileExists Method

PocketBrowser 3.x API

The FileExists Method of the ODAX ActiveX Object checks to see whether the specified file exists in the destination.

FileExists (Method of the ODAX ActiveX Object) Syntax
var status = object.FileExists(fileName);

ParametersW Toggle Parameters

Items listed in this section indicate parameters, or attributes which can be set.

Name Possible Values Description
Default Value
fileName String File Name with full path N/A

axReturns Toggle Return Values

Name Description
Status Returns true if the specified file exists and false if it does not

Examples Toggle Examples

The following example displays how to use FileExists Method:

<script>
var ax = new ActiveXObject("CeODAX.ODAX");
var fileName = '\\application\\test.xml';

if( true == ax.FileExists(fileName))
{
alert("File :"+ filename + " Exists!!");
}
</script>
Copy example to clipboard Copy example to clipboard

Info Toggle Additional Information

Supported Platforms Windows Mobile, Windows CE
Persistence Runs immediately.
Min. Requirements None