Powershell silent mkdir
PetSerAl is correct, added to by SimonS
Out-Null
is your best bet but as SimonS stated > $null
is quicker
Just to add another solution: mkdir
returns an object and if I just execute the code below, I don't have any output. Further more, I can use $dir
to make my own output if needed
$dir = mkdir c:\foo\bar
As a side note, I've tested this PowerShell Version
PS> $PSVersionTable.PSVersion
Major Minor Build Revision
----- ----- ----- --------
5 1 15063 1155