Know the process that use a file

  • Thread starter Thread starter paraidy
  • Start date Start date
P

paraidy

Hi Guys, i would to know if a file is used by a process, and what is
the process that use the file, how can i do this in VB.net?
thanks :)
 
i think the only way to do it is to try and access the file inside a Try
Catch block and if an error is thrown the file is being used....
 
i think the only way to do it is to try and access the file inside a Try
Catch block and if an error is thrown the file is being used....


And then you still not know wich process is using the file :-)

Michel
 

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