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

rmdir /s recurses into symlinkd directories

Discussion in 'Support' started by jjensen, Sep 23, 2010.

  1. jjensen

    Joined:
    Oct 13, 2009
    Messages:
    10
    Likes Received:
    0
    I am testing out 12.00.27 under Windows 7.

    cmd.exe does not do this under Windows 7, and I would say this is correct behavior. The symlinkd should be deleted, but the files residing within the symlinkd should not.

    Thoughts?

    Josh
     
  2. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,520
    Likes Received:
    4
    | I am testing out 12.00.27 under Windows 7.
    |
    | cmd.exe does not do this under Windows 7, and I would say this is
    | correct behavior. The symlinkd should be deleted, but the files
    | residing within the symlinkd should not.
    |
    | Thoughts?

    First, the body of your post does not indicate what you'd like to be
    different. Remember, those of us who read this as email have need superior
    eyesight to read the title.
    That aside, I agree in principle, regardless of what CMD.EXE does - by
    default RMDIR /S ought to delete only what is in the physical tree, not its
    logical extensions (those created as junctions or symlinks). Personally I'd
    prefer the addition of the J suboption to /N as available in the ERASE etc.
    commands. I always you ERASE to achieve what RMDIR could do due to its much
    greater flexibility.
    --
    Steve
     
  3. jjensen

    Joined:
    Oct 13, 2009
    Messages:
    10
    Likes Received:
    0
    What you have stated, 'RMDIR /S ought to delete only what is in the physical tree', is precisely the default behavior I think RMDIR /S should have.

    Thanks for the reply!
     
  4. Rod Savard

    Joined:
    May 26, 2008
    Messages:
    481
    Likes Received:
    3
    I completely agree!
     
  5. krischik

    Joined:
    Feb 20, 2009
    Messages:
    46
    Likes Received:
    1
    I agree. I think to remember that TakeCommand will also recurse into junctions. Which is just as bad. Or if you delete a junktion / symlink then it will try to delete content. You need to use MKLNK /D to delete junktion / symlink - which is a rather uggly hack.
     

Share This Page