The following PowerShell code verifies if a specific single directory or even a whole directory path exists and creates it if not.
1 2 3 4 5 | $myPath = "C:\temp\myPath" if(!(Test-Path $myPath)){ New-Item -ItemType Directory -Path $myPath } |
The following PowerShell code verifies if a specific single directory or even a whole directory path exists and creates it if not.
1 2 3 4 5 | $myPath = "C:\temp\myPath" if(!(Test-Path $myPath)){ New-Item -ItemType Directory -Path $myPath } |