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
 
Back
Top