Check for locked file

E

Erik Fjelldal

How can I check if a file is in use, I have file and I want to know if
someone have the file opened for writing, I dont care if they have opened
the file readonly.

The type of file can be all types.

Erik Fjelldal
 
M

m.posseth

try to open the file exclusive , if you can`t do that ( error is raised but
ofcourse catched by you ) the file is already opened by someone else

regards

Michel Posseth [MCP]
 

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

Top