Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Remove-Item -recurse still doesn't work?

91 views
Skip to first unread message

Clint B

unread,
Apr 6, 2010, 12:37:06 AM4/6/10
to
I remember having issues with remove-item -recurse in v1, but directly
from get-help remove-item in v2:

"The Recurse parameter in this cmdlet does not work properly."
...
C:\PS>get-childitem * -include *.csv -recurse | remove-item
...
Because the Recurse parameter in this cmdlet is faulty, the command uses
the Get-Childitem cmdlet to get the desired files, and it uses the
pipeline operator to pass them to the Remove-Item cmdlet.

and yet this filed bug:
http://connect.microsoft.com/PowerShell/feedback/details/87456/remove-item-recurse-and-copy-item-recurse-exclude-not-acting-as-expected

is closed "As by Design"?

Hard to imagine that broken is genuinely by design. Do we need to
reopen a connect issue for this?

--
v(^_^)~Clint
http://outputredirection.blogspot.com

Larry__Weiss

unread,
Apr 6, 2010, 10:32:24 AM4/6/10
to
Yes, it is time to get Microsoft to clarify that issue.

- Larry

Clint

unread,
Apr 6, 2010, 11:06:57 AM4/6/10
to
0 new messages