PowerShell - Out-Null (echo off, /dev/null)

Windows Powershell Menu

About

To discard the output of a command, you don't set the echo to off as in DOS but you send it to Out-Null

same as /dev/null on Linux

Example with new Item

New-Item -Path . -Name "testfile1.txt" -ItemType "file" | Out-Null

Documentation / Reference







Share this page:
Follow us:
Task Runner