Charles Dye
Super Moderator
- May
- 5,354
- 162
Staff member
It appears that RD with the /S option does not show error messages when an error occurs. RD without /S does display error messages; so does a DEL command equivalent to RD /S:
(Aha! <CODE>tags prevent the forum software from stripping leading/trailing spaces from copied text!)
</CODE>
Code:
C:\>ver
TCC 9.02.147 Windows XP [Version 5.1.2600]
C:\>rd /s Foo\
C:\Foo\* : Are you sure (Y/N)? Y
C:\>rd /s Foo\
C:\Foo\* : Are you sure (Y/N)? Y
C:\>rd Foo\
TCC: (Sys) The directory is not empty.
"C:\Foo"
C:\>del /s /x /z Foo\*
C:\Foo\* : Are you sure (Y/N)? Y
Deleting C:\Foo\LockedFile.exe
TCC: (Sys) Access is denied.
"C:\Foo\LockedFile.exe"
TCC: (Sys) The directory is not empty.
"C:\Foo"
0 files deleted
C:\>
</CODE>