File Acces

  • Thread starter Thread starter Mohsen Aghazadeh
  • Start date Start date
M

Mohsen Aghazadeh

Do you have any idea of how I can find out if a file in a
directory is being used by a user or application without
trying to open/delete/... the file? (Just getting the
file status)
It would be highly appreciated if you reply me.
 
I don't think there's a Open or Used attribute. I've seen a few posts on
this that correspond with that position. Basically, I think you need to
wrap File.Open in a try catch block and check for the exception.

Cheers,

Bill
 

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

Similar Threads

File being used 3
Windows 10 One Drive Problem 2
Error 0xC00D3E8E: The property is read only. One way to fix. 1
Thunderbird problem 2
Can't delete file 3
No acces over network ? 3
Windows 11 Windows 11 update 5
Import File Information 0

Back
Top