Windows: redirect stdout and stderror to nothing
Solution 1:
You want command > nul 2>&1
.
Solution 2:
You want command > $null 2>&1
nul
only works in command prompt whereas $null
works in powershell.
You want command > nul 2>&1
.
You want command > $null 2>&1
nul
only works in command prompt whereas $null
works in powershell.