Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

Help output: what do they mean by this?

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 11-10-2006   #1 (permalink)
Lucvdv
Guest


 

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]
Guest


 

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
Guest


 

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]
Guest


 

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


 

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
Guest


 

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
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mic Output Skipping cmar001 Sound & Audio 0 05-07-2008 08:31 PM
cmd output question DaveKingston PowerShell 16 10-25-2007 10:51 AM
Tv output, PAL Knut Vista music pictures video 14 07-29-2007 05:05 AM
get-help formating output BillN PowerShell 3 07-17-2007 05:05 PM
No output from write-output DouglasWoods PowerShell 3 04-13-2007 11:36 AM


Vistax64.com 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 2005-2008

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 47 48 49 50 51