Cory Posted February 22, 2008 Report Share Posted February 22, 2008 I am writing a macro that renames a network folder which is likely to be locked because a user has a file open. But I don't see an "If Folder Ready" like the "If File Ready". I tried the later with the folder path but it reports that it's not ready in all cases. I had considered recursively looking at each file in the folder to check it any of them were not ready but it's possible that all files are ready and it could still be locked. For instance if someone have an explorer window open to that folder it will cause a lock. Doe anyone know if there's an easy way to determine if the folder is ready? The best way I was able to think of so far was to create a batch file with the rename command and redirect the output to a file which I would read back in and if the file contains "Access is Denied" then I can run with that but this isn't a very elegant solution. The main benefit is that it doesn't error out and I can prompt the user to deal with it and repeat. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.