diff --git a/Convert-ToWave.ps1 b/Convert-ToWave.ps1 index f32d394..bb8a63e 100644 --- a/Convert-ToWave.ps1 +++ b/Convert-ToWave.ps1 @@ -1,9 +1,9 @@ $basepath="." $in_put="$basepath/Input" $output="$basepath/Output" -$ffmpeg=Get-Command ffmpeg +$ffmpeg=Get-Command -ErrorAction SilentlyContinue ffmpeg if ($ffmpeg -eq $null) { - $ffmpeg="$basepath/ffmpeg.exe" + $ffmpeg="$basepath/ffmpeg" } $toconvert=Get-ChildItem "$in_put/" $toconvert|%{