Sign in to follow this  
Followers 0
spac3m0nk3y

Folder in use detection?

2 posts in this topic

Is there a way to detect whether a folder is in use?

What I'm wanting to do is watch a network share for new folders and if a new folder is found, move the folder to another share but only if there are no new files being created in the folder to be moved.

Share this post


Link to post
Share on other sites



At first I was thinking by size, but that wouldn't work because a lot of programs first "bloat" their files to take up the drive space, then rewrite the actual data to it (not changing its size)

Just an idea: You could check the "Date Modified" Value twice, and if it didn't change on ANY file in the DIR then you can rest assured that no file is being written to.

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