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 }
source to share
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.
source to share