Improve what-is.ps1

This commit is contained in:
Markus Fleschutz
2021-05-25 19:42:11 +02:00
parent 48039f761b
commit a43b74e238
4 changed files with 28 additions and 3 deletions

View File

@ -18,8 +18,8 @@ try {
$Table = import-csv "$File"
foreach($Row in $Table) {
if ($Row.Abbreviation -eq $Abbreviation) {
$Filename = (get-item "$File").Name
"$($Row.Abbreviation) = $($Row.Definition) (in $Filename)"
$Basename = (get-item "$File").Basename
"$($Row.Abbreviation) = $($Row.Definition) in $Basename"
$FoundOne = $true
}
}