Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Help output: what do they mean by this?

Reply
 
Old 11-10-2006   #1 (permalink)
Lucvdv


 
 

Help output: what do they mean by this?

PS C:\> Get-Help Remove-Item -detailed
[...]
PARAMETERS
[...]
-recurse <SwitchParameter>
Deletes the items in the specified locations and in all child
items of the locations.

The Recurse parameter in this cmdlet does not work properly.


Does anyone know what they mean exactly by that last sentence?

What does it not do properly?

Is it broken with intention to fix later?
Broken without any plans to be fixed?
Or "works, but not exactly how you'd expect"?
Or "works, but not in all providers"?


Or does is just mean that the preferred way to do 'rm -rf' is

dir -recurse | del - force

instead of

dir | del -recurse -force

My System SpecsSystem Spec
Old 11-10-2006   #2 (permalink)
Krishna Vutukuri[MSFT]


 
 

Re: Help output: what do they mean by this?

Hi,

"Get-help remove-item" gives help informatation related to remove-item
cmdlet. PARAMETERS section describes the paramaters the cmdlet accepts. So
in this case remove-item has a parameter -recurse.

So,

del <directory> -recurse

will delete your directory.

Assumption: del is aliased to remov-item

PS C:\temp> get-alias del

CommandType Name
Definition
----------- ---- ----------
Alias del
Remove-Item


-Krishna[MSFT]
Windows PowerShell Team
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.

"Lucvdv" <replace_name@null.net> wrote in message
news:mp09l25gh44mr3m6la7inm2984ddb7ilaq@4ax.com...
> PS C:\> Get-Help Remove-Item -detailed
> [...]
> PARAMETERS
> [...]
> -recurse <SwitchParameter>
> Deletes the items in the specified locations and in all child
> items of the locations.
>
> The Recurse parameter in this cmdlet does not work properly.
>
>
> Does anyone know what they mean exactly by that last sentence?
>
> What does it not do properly?
>
> Is it broken with intention to fix later?
> Broken without any plans to be fixed?
> Or "works, but not exactly how you'd expect"?
> Or "works, but not in all providers"?
>
>
> Or does is just mean that the preferred way to do 'rm -rf' is
>
> dir -recurse | del - force
>
> instead of
>
> dir | del -recurse -force



My System SpecsSystem Spec
Old 11-10-2006   #3 (permalink)
Adam Milazzo


 
 

Re: Help output: what do they mean by this?

Krishna Vutukuri[MSFT] wrote:
> Hi,
>
> "Get-help remove-item" gives help informatation related to remove-item
> cmdlet. PARAMETERS section describes the paramaters the cmdlet accepts. So
> in this case remove-item has a parameter -recurse.
>
> So,...


He's asking about this sentence in the help file:

"The Recurse parameter in this cmdlet does not work properly."

What do you mean by THAT???
My System SpecsSystem Spec
Old 11-11-2006   #4 (permalink)
Andrew Watt [MVP]


 
 

Re: Help output: what do they mean by this?

On Fri, 10 Nov 2006 15:20:57 +0100, Lucvdv <replace_name@null.net>
wrote:

>
> The Recurse parameter in this cmdlet does not work properly.
>
>
>Does anyone know what they mean exactly by that last sentence?


As far as I am aware it means exactly what it says. The -recurse
parameter doesn't work properly.

See
https://connect.microsoft.com/feedba...7456&SiteID=99.

It hasn't been fixed in RC2 as far as I can see.

If you execute a command like the following on a directory hierarchy
which contains *.txt files at multiple levels remove-item only
recognises those files at one level.

remove-item C:\Disposable\* -include *.txt -recurse -whatif

At least it doesn't do what I would expect it to do.

But if you try

get-childitem C:\Disposable\* -include *.txt -recurse

that does recurse across *.txt files at multiple levels.

Andrew Watt MVP
My System SpecsSystem Spec
Old 11-15-2006   #5 (permalink)
June Blender (MSFT)


 
 

RE: Help output: what do they mean by this?

Andrew's right. (I wrote the sentence, so I know for sure!)

This parameter has an effect, but it's not what you would expect, and
it's not particularly useful.

If I described the effect in the Help, users might use the parameter in
scripts, which would prevent us from fixing it. I also didn't want to
tell users what it "should do" if it didn't really do it, because you
might think you made an error. As usual, honesty is the best policy,
especially in docs.

It's definitely on our list of things to do, but I don't know when it
will be fixed. As you might imagine, we have a very long wish list.

I really appreciate hearing about any confusing stuff in the docs.
Thanks for posting!

--
June Blender [MSFT]
Windows PowerShell Documentation
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.



"Lucvdv" wrote:

> PS C:\> Get-Help Remove-Item -detailed
> [...]
> PARAMETERS
> [...]
> -recurse <SwitchParameter>
> Deletes the items in the specified locations and in all child
> items of the locations.
>
> The Recurse parameter in this cmdlet does not work properly.
>
>
> Does anyone know what they mean exactly by that last sentence?
>
> What does it not do properly?
>
> Is it broken with intention to fix later?
> Broken without any plans to be fixed?
> Or "works, but not exactly how you'd expect"?
> Or "works, but not in all providers"?
>
>
> Or does is just mean that the preferred way to do 'rm -rf' is
>
> dir -recurse | del - force
>
> instead of
>
> dir | del -recurse -force
>

My System SpecsSystem Spec
Old 11-16-2006   #6 (permalink)
Lucvdv


 
 

Re: Help output: what do they mean by this?

On Wed, 15 Nov 2006 14:20:01 -0800, June Blender (MSFT)
<juneb@remove_this_part_microsoft.com> wrote:

> It's definitely on our list of things to do, but I don't know when it
> will be fixed. As you might imagine, we have a very long wish list.


Thanks for the clarification.
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Tab delimited output PowerShell
Enexpected output when using output-csv PowerShell
Tv output, PAL Vista music pictures video
No output from write-output PowerShell
sorting the help output PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46