SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
File in used

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
File in used
Author Message
Pierre Dupuis



Joined: 22 Aug 2000
Posts: 85

Post File in used Reply with quote

How i can know if a file is opened by another job?

Tue May 15, 2001 9:13 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: File in used Reply with quote

Use FileExists statement. If the file is locked for reading, it will return False.

If you want to verify that the file actually exists, but locked, use Dir and check for file name in the output list.

There is no way to check whether a file is locked for writing before trying to write to it. In such situations you can enable "ignore errors" and do all error handling yourself, i.e. FileOpen..., "WRITE", ...; IfThen handle, DO_IT

: How i can know if a file is opened by another job?

Tue May 15, 2001 10:13 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.