winxp pro sp2 tc7pb2
create empty dir then open CMD.exe IN IT
delete empty dir from TC => "dir is not empty" (bug: it is), press "delete"
"could not delete dir" (OK because CMD is in it)
close CMD.EXE, repeat procedure, only the second prompt is displayed (correct).
pb2 delete empty dir reports dir not empty
Moderators: Hacker, petermad, Stefan2, white
Confirmed!
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50471
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
This is unfortunately normal windows behaviour. You get the same error as if the dir isn't empty.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
2ghisler(Author)
If even enumeration fails inform the user that the access is denied. This way to different error messages can be shown.
My suggestion: Check if the directory contains any files before trying to remove it. If yes ask user if it should be deleted even if it's not empty.This is unfortunately normal windows behaviour. You get the same error as if the dir isn't empty.
If even enumeration fails inform the user that the access is denied. This way to different error messages can be shown.
Support++Lefteous wrote:My suggestion: Check if the directory contains any files before trying to remove it. If yes ask user if it should be deleted even if it's not empty.
If even enumeration fails inform the user that the access is denied. This way to different error messages can be shown.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
Using TC 11.03 / Win10 x64
Using TC 11.03 / Win10 x64