BatchEncoderWx/config/validate-tools-path.ps1

15 строки
468 B
PowerShell
Исходник Постоянная ссылка Обычный вид История

2018-04-13 19:33:54 +03:00
# This is BatchEncoder tools validation script for PowerShell.
# This file was downloaded from https://github.com/wieslawsoltes/BatchEncoder/blob/master/config/validate-tools-path.ps1
$Files = Get-ChildItem "$pwd\tools" -Filter *.xml
"Validate Tools Path:"
ForEach ($File in $Files)
{
[xml]$Xml = Get-Content -Path $File.FullName
$path = $Xml.Tool.path
$PathExists = Test-Path $path
if ($PathExists) { '[OK] ' + $path } else { '[X] ' + $path }
}