rmdir /s recurses into symlinkd directories

Oct 13, 2009
10
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
 
May 20, 2008
3,515
4
Elkridge, MD, USA
| 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
 
Oct 13, 2009
10
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.

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).

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!