By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,472 Members | 1,270 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,472 IT Pros & Developers. It's quick & easy.

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

P: n/a

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
Nov 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Cor
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
Nov 20 '05 #2

P: n/a
"Robin Tucker" <id*************************@reallyidont.com> schrieb

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. ;-)
--
Armin

http://learn.to/quote
http://www.plig.net/nnq/nquote.html

Nov 20 '05 #3

P: n/a
Thanks Cor, you are on fire today :)

"Cor" <no*@non.com> wrote in message
news:uz**************@TK2MSFTNGP12.phx.gbl...
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

Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.