Skip to content

Instantly share code, notes, and snippets.

@alst74
Created February 24, 2017 13:21
Show Gist options
  • Save alst74/7ea553d582c1d4003929cfb564e1bd83 to your computer and use it in GitHub Desktop.
Save alst74/7ea553d582c1d4003929cfb564e1bd83 to your computer and use it in GitHub Desktop.
If (!(Test-Path $CLIENT_ROOT\archive)) {
write-host "Creating archive folder $CLIENT_ROOT\archive"
New-Item -Path $CLIENT_ROOT\archive -ItemType Directory
}
@alst74
Copy link
Author

alst74 commented Feb 24, 2017

Powershell, test for a folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment