I often have to look up this simple PowerShell command. The following command checks if a folder exists and if not, creates it. Works great.
if ((Test-Path -path C:\Temp\Folder\) -ne $True) { New-Item C:\Temp\Folder\ -type directory; }
A place where I can put my code and discuss big data.
I often have to look up this simple PowerShell command. The following command checks if a folder exists and if not, creates it. Works great.
if ((Test-Path -path C:\Temp\Folder\) -ne $True) { New-Item C:\Temp\Folder\ -type directory; }