FileIsReady |
Top Previous Next |
Syntax - If FileIsReady <FilePathAndName> … Where: <FilePathAndName> is a valid path and file name or a variable that contains a valid path and file name.
Description: This comparison operator is used to determine if a specified file exists and can be opened for reading. A file may exist, but not be available if the file is in use by another application, or because of security settings. This comparison returns a TRUE condition if the specified file is present and EMUE can obtain an exclusive lock on the file. The observed behavior will depend on the type of file and circumstance. For example, Excel will lock a file and notify other users. Notepad, Wordpad and most text editors do not lock the file at all. That means that if EMUE will be able to obtain an exclusive lock on a text file and FileIsReady will evaluate to TRUE even if another user has that file open in Notepad. On the other hand, if the file that EMUE is trying to obtain a lock on is an Excel file and the file is open elsewhere, FileIsReady will evaluate to FALSE. This comparison operator can be used with either an in-line If (the original OLIE™ syntax) or a Block If.
Note: The <FilePathAndName> given must be accessible from the workstation on which EMUE is running.
See Also:
|