- バックアップ一覧
- 現在との差分 を表示
- ソース を表示
- バックアップ を表示
- PowerShell/ファイル操作/ファイル・フォルダの存在確認 Test-Path へ行く。
- 1 (2016-03-23 (水) 04:11:08)
- 2 (2016-03-23 (水) 04:57:10)
- 追加された行はこの色です。
- 削除された行はこの色です。
* ファイル・フォルダの存在確認 Test-Path [#y7db7f89] *** いずれか1つはファイルが存在するか? [#gb3284af] $files = @("1.txt", "2.txt", "3.txt") if (($files | % { Test-Path $_}) -contains $true) { echo "Ok" } else { echo "Not" }