Detecting whether a file is locked by another process or not...........

  • Thread starter Thread starter Robin Tucker
  • Start date Start date
R

Robin Tucker

Would this just be a case of trying to open the file and handling the
exception intelligently? I hope not - I don't like exceptions.....



Robin
 
Robin Tucker said:
Would this just be a case of trying to open the file and handling
the exception intelligently?

AFAIK that's the only reliable way.
I hope not - I don't like
exceptions.....


Me too, unless they are caught. ;-)
 
Hi Robin,

But in my opinion, this is were the exception is made for.

You have no influence on that in your program (except if the file would have
an attribute that it is busy or something and as far as I know that does not
exist).
Would this just be a case of trying to open the file and handling the
exception intelligently? I hope not - I don't like exceptions.....

Cor
 
Thanks Cor, you are on fire today :)

Cor said:
Hi Robin,

But in my opinion, this is were the exception is made for.

You have no influence on that in your program (except if the file would have
an attribute that it is busy or something and as far as I know that does not

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top