in reply to Permission denied error from dirmove function of File::Copy::Recursive.

I found the unlocker freeware utility which can delete "locked" files. There is a command line interface to it. I do not know the details of how it works.
  • Comment on Re: Permission denied error from dirmove function of File::Copy::Recursive.

Replies are listed 'Best First'.
Re^2: Permission denied error from dirmove function of File::Copy::Recursive.
by Gulliver (Monk) on Jul 25, 2011 at 19:03 UTC

    This is very interesting. I don't want to install Freeware on a corporate server but if this VB or C# app can do it then maybe I could do the same. If I could find something open source that is similar I could see how to do it.

      I did some more snooping around and found unlocking-files-that-are-in-use. The article actually mentions unblocker and shows how to unlock a file with Microsoft's Sysinternal process explorer tool. I don't know if there is a command line interface to this or not, but looks certainly like something worth more investigation. I presume that your company would not have a problem with freeware from Microsoft's technet.

      I still was not able to find the underlying mechanism that these folks use to perform the unlocking - but evidently enough folks have figured it out that with more effort, this could be discovered. I hope that the above tool can be controlled via command line and if so, then I think you are in good shape.