I use Windows 7 x64. I have a svn checkout Working folder, say "Working". When I use a batch file or just open CMD, I did

del "%currPath%\Working" /s /f /q
rmdir "%currPath%\Working" /s /q

The folder "Working" is still there, but the size is 0KB. And when I want to enter into this folder, I got an error message like:

Can't access ...\Working.
Permission denied.

This is not a general situation for all chekcout folders. Even for this specific folder "Working", sometimes it works.

If I wait for a while, sometimes 10 minutes, the folder will disappear.

I totally have no idea what may cause this issue.

  • 2
    I've seen behavior similar to this when a program is holding the file/folder open. For example, download a podcast .mp3 file, open it in Windows Media Player, try to delete it. Still there. Close WMP and suddenly it's gone. SVN shell integration would likely hold the folder open, for example. – Mark Allen Dec 21 '13 at 8:25
  • 1
    wait for it to be 'locked', then run handle.exe from sysinternals. technet.microsoft.com/en-us/sysinternals/bb896655.aspx -- then taskkill /f /im thatapp.exe – Knuckle-Dragger Dec 21 '13 at 8:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.