I would like to delete a file, which is locked by another process, FROM THE COMMAND LINE (Windows 7).
Note that I am aware that this might cause all kind of havoc, including losing all my data and making Alan Turing rotate in his grave. In my particular case, I know what I'm doing, or at least I'm willing to take the responsibility.
Since I have installed Cygwin, my attempt was to use rm -rf, but if the file is locked, this still doesn't work (Permission Denied).
I've googled for this problem and found suggestions to freeware tools (handler.exe and LockHunter), and I'm willing to try them. I just wonder if there are better ways to do it, in particular, whether some tools in Cygwin, or maybe in Windows itself, would allow me to do it.
Any suggestions?