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