Before moving a group of folders and files, I want to check that all files and folders are not locked for moving.
They may be locked by an external process, they may be running, or perhaps an external process has also locked the folder.
What is the best way to perform such a check?
I am thinking about the LockFile or LockFileEx functions.
If you try to impose exclusive access on a file, and if LockFile returns False, then someone has already locked the file or run it. Right?