Skip to content

Instantly share code, notes, and snippets.

@Greyeye
Created February 20, 2014 23:46
Show Gist options
  • Save Greyeye/9125826 to your computer and use it in GitHub Desktop.
Save Greyeye/9125826 to your computer and use it in GitHub Desktop.
create folder if doesnt exists
$path = \\hello\world
if (-Not (Test-Path $path)) {
new-item -ItemType directory -Path $path
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment