mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-06-30 20:50:02 +02:00
Improve what-is.ps1
This commit is contained in:
@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user