Created
December 17, 2021 02:01
-
-
Save t2psyto/78552fe7195cc15a1f153ea6d4cf2088 to your computer and use it in GitHub Desktop.
powershell コマンドライン引数のテスト
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
#ショートカット作成: powershell -NoProfile -ExecutionPolicy Unrestricted -File testarg.ps1 | |
Param( | |
[String]$arg1 = "" | |
) | |
if ($arg1 -eq "") { | |
echo "引数を指定してください。" | |
pause | |
exit | |
} | |
echo ($arg1 + "foo") | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment