diff --git a/Get-VideoInfo.ps1 b/Get-VideoInfo.ps1 index 7a5ac25..1a85583 100644 --- a/Get-VideoInfo.ps1 +++ b/Get-VideoInfo.ps1 @@ -123,7 +123,7 @@ try { } Write-Output '----------------------------------------' - Write-Output ('File Name: {0}' -f $Video) + Write-Output ('File Name: {0}' -f [System.IO.Path]::GetFileName($VideoPath)) $iniPath = Join-Path $PSScriptRoot 'Get-VideoInfo.ini' if (-not (Test-Path -LiteralPath $iniPath)) {