any simple and fast way to check if file is open (locked) other than T/C/F ?

  • Thread starter Thread starter Joe
  • Start date Start date
Joe said:
any other way than Try / Catch / Finally ??

Why do you want to know this if you don't want to access the file? It
wouldn't make sense to check if the file is locked before accessing it
because between the check and the access another process might have opened
it, so the positive check would lead to an exception when accessing the file
anyway.

Armin
 

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