is a file blocked?

  • Thread starter Alejandra Parra
  • Start date
A

Alejandra Parra

Is there any way to know if a file is blocked, because it's being used by
another process?
 
R

R.Balaji

Hi,

Inside the try catch block, try to create a file in write access.
If it is opened by some other processes, it will throw an exception.
Catch the exception and check it.
By this you will know whether this file is being used by other processes or
not.

Regards,
R.Balaji
 

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top