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);
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
Return Values
Name Description Status Returns true if the specified file exists and false if it does not
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
Additional Information
Supported Platforms Windows Mobile, Windows CE Persistence Runs immediately. Min. Requirements None