• 追加された行はこの色です。
  • 削除された行はこの色です。
* コマンドや関数の概要を取得する Get-Command [#gb2a22f3]

** 実行可能か調べる(パスが通っているか調べる) [#na631295]

 if (!(Get-Command "no-such-app.exe" -ErrorAction SilentlyContinue)) {
 if ((Get-Command "no-such-app.exe" -ErrorAction SilentlyContinue) -eq $Null) {
   echo "The app is not found"
 }

** 参考 [#x5153bb8]
http://ss64.com/ps/get-command.html



トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS