1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

No error messages for RD /S ?

Discussion in 'Support' started by Charles Dye, May 27, 2008.

  1. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,272
    Likes Received:
    38
    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:


    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:\>
    
    (Aha! <CODE>tags prevent the forum software from stripping leading/trailing spaces from copied text!)

    </CODE>
     
  2. samintz

    samintz Scott Mintz

    Joined:
    May 20, 2008
    Messages:
    1,168
    Likes Received:
    11
    FWIW - the email I received did not contain the word \<code\> in the text. I see "Aha! tags..."

    The tags Charles is referring to are \[code\] and \[/code\]. I tried to escape the leading and trailing brackets in the previous sentence. So I don't know if it worked.

    -Scott
     
  3. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,272
    Likes Received:
    38
    In build 149, it gives a "directory is not empty" error. Which is reasonable, and alerts the user that an error has occurred. It would be nice to see the name of the file which could not be deleted, if that wouldn't require major changes to DEL / RMDIR.
     
  4. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,666
    Likes Received:
    80
    Charles Dye wrote:

    It would require major changes to RD. I'll put it on the suggestion
    list for v10.
     
  5. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,272
    Likes Received:
    38
    In that case, consider it unsuggested....
     

Share This Page