2 ms·
rmdir will only remove visible non-system files, and will fail with the non-obvious "The directory not empty" when failing to delete one such file and subsequen
by masklinn 9y ago
rmdir will only remove visible non-system files, and will fail with the non-obvious "The directory not empty" when failing to delete one such file and subsequently not being able to delete the corresponding directory.
An alternative would be to use dir + attrib to make all files visible (I don't know that stripping out the system flag by default is a good idea) before running rmdir.