" symbol mean in PowerShell Can someone explain what a symbol does > in a PowerShell script ? To be specific, I am looki...">

What does the ">" symbol mean in PowerShell

Can someone explain what a symbol does >

in a PowerShell script ?

To be specific, I am looking at the following line:

New-Item $env:Passwords -ItemType Directory -Force > $null  }

      

+3


source to share


1 answer


It is a redirection operator, in particular for output. In this case, it redirects (sends) the output New-Item

to the destination $null

- IOW, it suppresses it, so there is no exit.



You can view the Help topic about_Redirection

or for more general information Using Command Redirection on MSDN.

+5


source







All Articles