Created
April 12, 2013 09:21
-
-
Save TearTheSky/5370779 to your computer and use it in GitHub Desktop.
カレントフォルダ以下のフォルダ名を引数に入れる。
存在すれば何もしない。
存在しなければその名前のフォルダを作る。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#フォルダの存在を確認して、無ければ作る関数 | |
Function Create-Folder( $folderName ) { | |
if(Test-Path $folderName) { | |
} | |
else { | |
$currentDirectory = Get-Location | |
$createLocation = "$currentDirectory\$folderName" | |
New-Item -type directory $createLocation | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment