• 追加された行はこの色です。
  • 削除された行はこの色です。
* ファイル・フォルダの存在確認 Test-Path [#y7db7f89]


*** いずれか1つはファイルが存在するか? [#gb3284af]
 $files = @("1.txt", "2.txt", "3.txt")
 
 if (($files | % { Test-Path $_}) -contains $true) {
     echo "Ok"
 } else {
     echo "Not"
 }


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