I have a folder that contains files I have compiled in .NET (however this question could easily apply to a non-programmer's folder too, e.g. containing word documents or whatever.)
When I try to clear it out using the Command Prompt:
del /F /S *
Then I get an "Access is Denied" on a certain file. This is definitely not due to security so it must be a lock.
However when I use Cygwin I am able to delete it:
$ rm -r *
So what is Cygwin doing that is special. Can I emulate this some how from the regular command prompt?
By the way this happens enough times 100+ so that it isn't a fluke that the file got unlocked before I opened Cygwin. Definitely Cygwin is able to unlock it somehow but regular Command Prompt cannot do it.