Start-Process with Process Priority in Loop doesn't recognize variable
问题 I'm using FFmpeg with PowerShell. I have a loop that goes through a folder of mpg files and grabs the names to a variable $inputName . FFmpeg then converts each one to an mp4 . Works Batch Processing $files = Get-ChildItem "C:\Path\" -Filter *.mpg; foreach ($f in $files) { $inputName = $f.Name; #name + extension $outputName = (Get-Item $inputName).Basename; #name only ffmpeg -y -i "C:\Users\Matt\Videos\$inputName" -c:v libx264 -crf 25 "C:\Users\Matt\Videos\$outputName.mp4" } Not Working Batch