Last active
August 29, 2015 14:07
-
-
Save hymkor/699e8269641e95d16a09 to your computer and use it in GitHub Desktop.
PowerShell をバッチファイルに組み込もうとしたけれども(追記:解決した!) ref: http://qiita.com/zetamatta/items/a9b5201b7d8009fad06b
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
@more +1 "%~f0" | powershell -Command "-" & exit /b 0 | |
Write-Host 'Step1' | |
Write-Host 'Step2' | |
if ( $true ){ | |
Write-Host 'Step3' | |
Write-Host 'Step4' | |
} else { | |
Write-Host 'Step5' | |
} | |
Write-Host 'End' |
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
✏ why.cmd | |
Step1 | |
Step2 | |
✏ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment