SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
FileExists

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
FileExists
Author Message
Ted



Joined: 22 Aug 2001
Posts: 10

Post FileExists Reply with quote

FileExists is returning true even when the file is locked by another application. The documentation states that FileExists will return false if the file is locked. I keep getting error messages because I am trying to use FileOpen on a locked file.

Fri Oct 18, 2002 6:22 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7966

Post Re: FileExists Reply with quote

The documentation is outdated for FileExists. Since FileExists supports wildcards it is no more returns FALsE for locked files.

To test for a locked file use the following code

OnErrorResumeNext
FileOpen .... as usual..., file_no
OnErrorStop

IfThen file_no, GO_TO_FILE_RPROCESS, GO_TO_FILE_LOCKED
....

Note that if FileOpen fails to open a file, the returned file number is zero. You can then test for zero to find if the file opene operation failed.

: FileExists is returning true even when the file is locked by another
: application. The documentation states that FileExists will return false if
: the file is locked. I keep getting error messages because I am trying to
: use FileOpen on a locked file.

Sat Oct 19, 2002 9:24 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.