Sign in to follow this  
Followers 0
Amen

Any way to check if file is currently accessed by other process

7 posts in this topic




Hi, is any way to check if one file is currently in use? opened or accessed?A system command maybe?

Try and delete it :D

Share this post


Link to post
Share on other sites

Use FileOpen() and if it fails (with the correct path) then it's probably becuase it's in use.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

ok Fileopen it is a good idea but i was wondering if there is any command that os offers to check that out.without open it first.thank u

a lock command maybe.To check instanly if it is open and if it is do not let other process access it (so check and use file in one tick of code)

Edited by Amen

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0