Skip to content

Instantly share code, notes, and snippets.

@hymkor
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hymkor/699e8269641e95d16a09 to your computer and use it in GitHub Desktop.
Save hymkor/699e8269641e95d16a09 to your computer and use it in GitHub Desktop.
PowerShell をバッチファイルに組み込もうとしたけれども(追記:解決した!) ref: http://qiita.com/zetamatta/items/a9b5201b7d8009fad06b
@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'
✏ why.cmd
Step1
Step2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment