Unlock Files Through the Command Console

Posted by Dan | Posted in Automation / Scripting, Windows | Posted on 12-18-2009

0

If you want to unlock files in Windows many of us know to use Unlocker. It’s a handy tool that I use often when a pesky process has a handle on a file. But what if you want to write a script that unlocks files from the command line. Welcome the tool “Handle” from Sysinternals by Mark Russinovich.

1

2

3

Then you could loop through the list of files by doing so.

Write a comment